Ver Fonte

pragma warning bug fix when using g++ on windows (#5943)

stekap000 há 6 meses atrás
pai
commit
bbeb515421
1 ficheiros alterados com 1 adições e 2 exclusões
  1. 1 2
      contrib/poly2tri/poly2tri/common/shapes.h

+ 1 - 2
contrib/poly2tri/poly2tri/common/shapes.h

@@ -38,8 +38,7 @@
 #include <stdexcept>
 #include <vector>
 
-
-#if defined(_WIN32)
+#if defined(_WIN32) && defined(_MSC_VER) && !defined(__INTEL_COMPILER)
 #  pragma warning( disable: 4251)
 #endif
 namespace p2t {