소스 검색

Merge branch 'master' of https://github.com/okamstudio/godot

Juan Linietsky 10 년 전
부모
커밋
e0c0aef615
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      platform/windows/os_windows.cpp

+ 4 - 0
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