aboutsummaryrefslogtreecommitdiff
path: root/platform/windows
diff options
context:
space:
mode:
authormarynate2015-01-18 02:06:29 +0800
committermarynate2015-01-18 02:08:26 +0800
commit9f61a4881e018508e1914ddbb4e7740c11f0a272 (patch)
tree65ab33481932809ace45db5a14e4b8ce8969c46a /platform/windows
parent91faf8e21810c8995e4f6e3b6ba47a6482ab877e (diff)
downloadgodot-9f61a4881e018508e1914ddbb4e7740c11f0a272.tar.gz
godot-9f61a4881e018508e1914ddbb4e7740c11f0a272.tar.zst
godot-9f61a4881e018508e1914ddbb4e7740c11f0a272.zip
Fix mingw windows build error
Diffstat (limited to 'platform/windows')
-rw-r--r--platform/windows/os_windows.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/platform/windows/os_windows.cpp b/platform/windows/os_windows.cpp
index ce7913366..4fa061886 100644
--- a/platform/windows/os_windows.cpp
+++ b/platform/windows/os_windows.cpp
@@ -57,7 +57,11 @@
static const WORD MAX_CONSOLE_LINES = 1500;
extern "C" {
+#ifdef _MSC_VER
_declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001;
+#else
+ __attribute__((visibility("default"))) DWORD NvOptimusEnablement = 0x00000001;
+#endif
}
//#define STDOUT_FILE