scons: Have MinGW target MSVCRT 7.0
authorJosé Fonseca <jfonseca@vmware.com>
Wed, 3 Feb 2010 22:53:03 +0000 (22:53 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Thu, 4 Feb 2010 10:38:35 +0000 (10:38 +0000)
Necessary for _aligned_malloc/free().

scons/crossmingw.py

index 9cb0b89e3c7849539e05f48f010d0ae797c6b36d..a4ae74e8d5454e3fc729ffea864791fd6c04821a 100644 (file)
@@ -177,6 +177,7 @@ def generate(env):
     # default in recent gcc versions
     env.AppendUnique(CFLAGS = ['-gstabs'])
 
+    env.AppendUnique(CPPDEFINES = [('__MSVCRT_VERSION__', '0x0700')])
     #env.AppendUnique(LIBS = ['iberty'])
     env.AppendUnique(SHLINKFLAGS = ['-Wl,--enable-stdcall-fixup'])
     #env.AppendUnique(SHLINKFLAGS = ['-Wl,--kill-at'])