summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenneth Lee <tjmcsaxy@gmail.com>2019-04-22 09:42:11 -0700
committerKenneth Lee <tjmcsaxy@gmail.com>2019-04-23 17:48:46 +0000
commit5c5c3a590a63a836fa03648ff39dd43acccdade0 (patch)
treed222100ca406771f374915e6297842c5e76706c2
parent6098a7f1914f64c77d689f54d5432095911b744f (diff)
downloadredot-engine-5c5c3a590a63a836fa03648ff39dd43acccdade0.tar.gz
Fixes build for Windows cross-compilation
Fixes #28299
-rw-r--r--platform/windows/detect.py2
-rw-r--r--platform/windows/os_windows.cpp1
2 files changed, 2 insertions, 1 deletions
diff --git a/platform/windows/detect.py b/platform/windows/detect.py
index 2f7334657f..e986c47b40 100644
--- a/platform/windows/detect.py
+++ b/platform/windows/detect.py
@@ -330,7 +330,7 @@ def configure_mingw(env):
env.Append(CCFLAGS=['-DWASAPI_ENABLED'])
env.Append(CCFLAGS=['-DWINMIDI_ENABLED'])
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', 'imm32', 'bcrypt','avrt'])
+ env.Append(LIBS=['mingw32', 'opengl32', 'dsound', 'ole32', 'd3d9', 'winmm', 'gdi32', 'iphlpapi', 'shlwapi', 'wsock32', 'ws2_32', 'kernel32', 'oleaut32', 'dinput8', 'dxguid', 'ksuser', 'imm32', 'bcrypt', 'avrt', 'uuid'])
env.Append(CPPFLAGS=['-DMINGW_ENABLED'])
diff --git a/platform/windows/os_windows.cpp b/platform/windows/os_windows.cpp
index 0c3d8af220..a6a947761b 100644
--- a/platform/windows/os_windows.cpp
+++ b/platform/windows/os_windows.cpp
@@ -53,6 +53,7 @@
#include <avrt.h>
#include <direct.h>
+#include <knownfolders.h>
#include <process.h>
#include <regstr.h>
#include <shlobj.h>