瀏覽代碼

Fix windows compilation when using MinGW

(cherry picked from commit 651677f033ab98f11f644a1a7b6ca97cfbe54c2b)
MrCdK 7 年之前
父節點
當前提交
1cda47a7bc
共有 1 個文件被更改,包括 1 次插入1 次删除
  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: