summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorAnton Yabchinskiy <arn@bestmx.ru>2015-01-21 12:03:29 +0300
committerAnton Yabchinskiy <arn@bestmx.ru>2015-01-21 12:03:29 +0300
commit6f93e6812edaf6c8c79c28dadbe5f1c4a8ced93e (patch)
tree70e49e718d13300738c45b0de1aee5afab9ddf31 /platform
parentfa38e9b838f32baedfca7a9250a76418b1872f5d (diff)
parentc6eabbbec5a9fec7a0d473fe67a544af3454c3d2 (diff)
Merge branch 'master' of https://github.com/okamstudio/godot
Diffstat (limited to 'platform')
-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 ce79133664..4fa061886d 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