Skip to content

Commit

Permalink
Fixes for MingW
Browse files Browse the repository at this point in the history
  • Loading branch information
live committed Apr 27, 2020
1 parent 48fdb66 commit 480910c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
#if defined(_WIN32)
// use dedicated GPUs by default
// http://developer.download.nvidia.com/devzone/devcenter/gamegraphics/files/OptimusRenderingPolicies.pdf
extern "C" { _declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001; }
extern "C" { _declspec(dllexport) DWORD AmdPowerXpressRequestHighPerformance = 0x00000001; }
extern "C" { __declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001; }
extern "C" { __declspec(dllexport) DWORD AmdPowerXpressRequestHighPerformance = 0x00000001; }
#endif

int main(int argc, char *argv[])
Expand Down
2 changes: 1 addition & 1 deletion src/render/CompositorSync.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ bool synchronizeToCompositor() {

#elif defined(_WIN32)

#include <Dwmapi.h>
#include <dwmapi.h>

namespace {
BOOL gDwmEnabled;
Expand Down

0 comments on commit 480910c

Please sign in to comment.