Ver Fonte

ignore some warnings when compiling with MSVC9

Chris Brunner há 17 anos atrás
pai
commit
b8fc586322
1 ficheiros alterados com 7 adições e 0 exclusões
  1. 7 0
      dtool/LocalSetup.pp

+ 7 - 0
dtool/LocalSetup.pp

@@ -540,6 +540,13 @@ $[cdefine USE_MEMORY_NOWRAPPERS]
 // If we are to build the native net interfaces.
 $[cdefine WANT_NATIVE_NET]
 
+/* Turn off warnings for using scanf and such */
+#if $[eq $[USE_COMPILER],MSVC9]
+        #print Will ignore CRT_SECURE warnings for MSVC9
+        $[cdefine _CRT_SECURE_NO_WARNINGS]
+        # pragma warning( disable : 4996 4275 )
+#endif
+
 
 /* Can we define a modern-style STL allocator? */
 $[cdefine USE_STL_ALLOCATOR]