瀏覽代碼

ignore some warnings when compiling with MSVC9

Chris Brunner 17 年之前
父節點
當前提交
b8fc586322
共有 1 個文件被更改,包括 7 次插入0 次删除
  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.
 // If we are to build the native net interfaces.
 $[cdefine WANT_NATIVE_NET]
 $[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? */
 /* Can we define a modern-style STL allocator? */
 $[cdefine USE_STL_ALLOCATOR]
 $[cdefine USE_STL_ALLOCATOR]