Browse Source

Try disabling C4389 for GTest only for MSVC

Rahul Sheth 4 năm trước cách đây
mục cha
commit
6b32f34fc2
1 tập tin đã thay đổi với 7 bổ sung3 xóa
  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
 // We need to be sure to have the same STL settings as Assimp
 
 
 #include <assimp/cimport.h>
 #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>
 #include <gtest/gtest.h>
-#pragma warning(pop)
+#ifdef _MSC_VER
+#  pragma warning(pop)
+#endif
 #include <memory>
 #include <memory>
 #include <math.h>
 #include <math.h>
 #include "UTLogStream.h"
 #include "UTLogStream.h"