summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2017-12-07 07:26:45 +0100
committerGitHub <noreply@github.com>2017-12-07 07:26:45 +0100
commit3ce41b81e59c3fa5e3b9d7a5fa78d13bf3746dd8 (patch)
tree6587fb4c691d9083d9aaed8c4336589cb5f89216
parentf674a55f3a6d7d7d86be859c241eba9a5225a2e5 (diff)
parent651677f033ab98f11f644a1a7b6ca97cfbe54c2b (diff)
Merge pull request #14360 from mrcdk/fix_win_mingw
Fix windows compilation when using MinGW
-rw-r--r--platform/windows/detect.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/windows/detect.py b/platform/windows/detect.py
index 890decf962..d85e1b061c 100644
--- a/platform/windows/detect.py
+++ b/platform/windows/detect.py
@@ -270,7 +270,7 @@ def configure(env):
env.Append(CCFLAGS=['-DOPENGL_ENABLED'])
env.Append(CCFLAGS=['-DRTAUDIO_ENABLED'])
env.Append(CCFLAGS=['-DWASAPI_ENABLED'])
- 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']])
env.Append(LIBS=['mingw32', 'opengl32', 'dsound', 'ole32', 'd3d9', 'winmm', 'gdi32', 'iphlpapi', 'shlwapi', 'wsock32', 'ws2_32', 'kernel32', 'oleaut32', 'dinput8', 'dxguid', 'ksuser'])
env.Append(CPPFLAGS=['-DMINGW_ENABLED'])