OSDN Git Service

scons: Disable more MSVC pedantic security warnings.
authorJosé Fonseca <jfonseca@vmware.com>
Wed, 21 Oct 2009 16:03:52 +0000 (17:03 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Thu, 22 Oct 2009 18:12:12 +0000 (19:12 +0100)
scons/gallium.py

index 587294a..34877b2 100644 (file)
@@ -263,7 +263,10 @@ def generate(env):
         if msvc and env['toolchain'] != 'winddk':
             cppdefines += [
                 'VC_EXTRALEAN',
+                '_CRT_SECURE_NO_WARNINGS',
                 '_CRT_SECURE_NO_DEPRECATE',
+                '_SCL_SECURE_NO_WARNINGS',
+                '_SCL_SECURE_NO_DEPRECATE',
             ]
         if debug:
             cppdefines += ['_DEBUG']