Explorar o código

Fix windows compilation when using MinGW

(cherry picked from commit 651677f033ab98f11f644a1a7b6ca97cfbe54c2b)
MrCdK %!s(int64=7) %!d(string=hai) anos
pai
achega
1cda47a7bc
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      platform/windows/detect.py

+ 1 - 1
platform/windows/detect.py

@@ -300,7 +300,7 @@ def configure(env):
         env.use_windows_spawn_fix()
 
         # build using mingw
-        env.Append(CCFLAGS=['-DWINVER=%s' % winver, '-D_WIN32_WINNT=%s' % winver])
+        env.Append(CCFLAGS=['-DWINVER=%s' % env['target_win_version'], '-D_WIN32_WINNT=%s' % env['target_win_version']])
         if (os.name == "nt"):
             env['ENV']['TMP'] = os.environ['TMP']  # way to go scons, you can be so stupid sometimes
         else: