Merge pull request #1250 from marynate/PR-fix-mingw-win-build
Fix mingw windows build error
This commit is contained in:
commit
2b22aba39e
1 changed files with 4 additions and 0 deletions
|
@ -57,7 +57,11 @@
|
||||||
static const WORD MAX_CONSOLE_LINES = 1500;
|
static const WORD MAX_CONSOLE_LINES = 1500;
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
#ifdef _MSC_VER
|
||||||
_declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001;
|
_declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001;
|
||||||
|
#else
|
||||||
|
__attribute__((visibility("default"))) DWORD NvOptimusEnablement = 0x00000001;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
//#define STDOUT_FILE
|
//#define STDOUT_FILE
|
||||||
|
|
Loading…
Reference in a new issue