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 587294af71dcbd0e7bc7f10d498f74d7880e28db..34877b2f8b327b234b627a86f2650efef615e9f7 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']