From ce7e2b2171c82fe2b8649afea852d272d1abcbcd Mon Sep 17 00:00:00 2001 From: Evan Martin Date: Fri, 27 Jul 2012 10:01:53 -0700 Subject: bootstrap: set _WIN32_WINNT to WinXP for mingw From a patch from Peter Kuemmel . --- bootstrap.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'bootstrap.py') diff --git a/bootstrap.py b/bootstrap.py index 86d38d9..33acc5d 100755 --- a/bootstrap.py +++ b/bootstrap.py @@ -78,9 +78,11 @@ if vcdir: '/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' -- cgit v1.2.3