diff options
author | MrCdK <contact@mrcdk.com> | 2017-12-07 04:59:11 +0100 |
---|---|---|
committer | MrCdK <contact@mrcdk.com> | 2017-12-07 04:59:11 +0100 |
commit | 651677f033ab98f11f644a1a7b6ca97cfbe54c2b (patch) | |
tree | e203fddcdca6b996ff382ebccf694a18c3ed7acb /platform/windows/detect.py | |
parent | b38378dd6c963d71d0c1ad40c53b29588e581757 (diff) | |
download | redot-engine-651677f033ab98f11f644a1a7b6ca97cfbe54c2b.tar.gz |
Fix windows compilation when using MinGW
Diffstat (limited to 'platform/windows/detect.py')
-rw-r--r-- | platform/windows/detect.py | 2 |
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']) |