Browse files

bootstrap: set _WIN32_WINNT to WinXP for mingw

From a patch from Peter Kuemmel <syntheticpp@gmx.net>.
  • Loading branch information...
1 parent adadf71 commit ce7e2b2171c82fe2b8649afea852d272d1abcbcd @evmar evmar committed Jul 27, 2012
Showing with 5 additions and 3 deletions.
  1. +5 −3 bootstrap.py
View
8 bootstrap.py
@@ -78,9 +78,11 @@ def run(*args, **kwargs):
'/nologo', '/EHsc', '/DNOMINMAX']
else:
args = shlex.split(os.environ.get('CXX', 'g++'))
- args.extend(['-Wno-deprecated',
- '-DNINJA_PYTHON="' + sys.executable + '"',
- '-DNINJA_BOOTSTRAP'])
+ cflags.extend(['-Wno-deprecated',
+ '-DNINJA_PYTHON="' + sys.executable + '"',
+ '-DNINJA_BOOTSTRAP'])
+ if sys.platform.startswith('win32'):
+ cflags.append('-D_WIN32_WINNT=0x0501')
args.extend(cflags)
args.extend(ldflags)
binary = 'ninja.bootstrap'

0 comments on commit ce7e2b2

Please sign in to comment.