summaryrefslogtreecommitdiff
path: root/scons/crossmingw.py
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2010-02-03 22:53:03 +0000
committerJosé Fonseca <jfonseca@vmware.com>2010-02-04 10:38:35 +0000
commit5a743d9c513e6a36612872f270ea97b269451280 (patch)
tree59cde0ffac517425186b83a1d89b2e6ea575a013 /scons/crossmingw.py
parentef67ad05cb2a23e555cfbfc67faf435677fbcf73 (diff)
scons: Have MinGW target MSVCRT 7.0
Necessary for _aligned_malloc/free().
Diffstat (limited to 'scons/crossmingw.py')
-rw-r--r--scons/crossmingw.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/scons/crossmingw.py b/scons/crossmingw.py
index 9cb0b89e3c..a4ae74e8d5 100644
--- a/scons/crossmingw.py
+++ b/scons/crossmingw.py
@@ -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'])