diff options
author | hurikhan <m4r10.5ch14ck@gmail.com> | 2015-01-19 21:46:03 +0900 |
---|---|---|
committer | hurikhan <m4r10.5ch14ck@gmail.com> | 2015-01-19 21:46:03 +0900 |
commit | d878b3205aac60f1ff139a2189663638befb557a (patch) | |
tree | 5ef2a0f9bbd3ba0337e931df061dbf124f54cf61 /platform | |
parent | dfb5a1d5e1318d91f26c0f7663afe861005104c8 (diff) | |
parent | a0511ed59a0e03232bf3abb49b3c916591453aef (diff) |
Merge remote-tracking branch 'upstream/master' into x11-window-management
Diffstat (limited to 'platform')
-rw-r--r-- | platform/windows/os_windows.cpp | 4 |
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 |