Skip to content

Commit

Permalink
Fixed InlineExportHelper emitting a MSVC-style warning suppression …
Browse files Browse the repository at this point in the history
…when generating for Itanium targets.

Relates to #209
  • Loading branch information
PathogenDavid committed Oct 31, 2021
1 parent a9ff8f3 commit b116dc2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Biohazrd.Utilities/InlineExportHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,8 @@ protected override TranslatedLibrary PostTransformLibrary(TranslatedLibrary libr
Writer.WriteLine($"inline void operator delete(void*, {dummyNamespaceName}::{placementNewHelperName}, void*) {{ }}");

Writer.EnsureSeparation();
Writer.WriteLine("#pragma warning(disable: 4190) // C-linkage function returning C++ type");
if (!__ItaniumExportMode)
{ Writer.WriteLine("#pragma warning(disable: 4190) // C-linkage function returning C++ type"); }
Writer.WriteLine($"extern \"C\" namespace {dummyNamespaceName}");
using (Writer.Block())
{
Expand Down

0 comments on commit b116dc2

Please sign in to comment.