소스 검색

Try disabling C4389 for GTest only for MSVC

Rahul Sheth 5 년 전
부모
커밋
6b32f34fc2
1개의 변경된 파일7개의 추가작업 그리고 3개의 파일을 삭제
  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"