Explorar o código

Try disabling C4389 for GTest only for MSVC

Rahul Sheth %!s(int64=4) %!d(string=hai) anos
pai
achega
6b32f34fc2
Modificáronse 1 ficheiros con 7 adicións e 3 borrados
  1. 7 3
      test/unit/UnitTestPCH.h

+ 7 - 3
test/unit/UnitTestPCH.h

@@ -43,10 +43,14 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 // We need to be sure to have the same STL settings as Assimp
 
 #include <assimp/cimport.h>
-#pragma warning(push)
-#pragma warning(disable:4389)
+#ifdef _MSC_VER
+#  pragma warning(push)
+#  pragma warning(disable : 4389)
+#endif
 #include <gtest/gtest.h>
-#pragma warning(pop)
+#ifdef _MSC_VER
+#  pragma warning(pop)
+#endif
 #include <memory>
 #include <math.h>
 #include "UTLogStream.h"