diff options
| -rw-r--r-- | CMakeLists.txt | 2 | ||||
| -rw-r--r-- | src/citra/citra.cpp | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index a61dee6e0..4668d4bea 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
| @@ -79,6 +79,8 @@ else() | |||
| 79 | add_definitions(/D_CRT_SECURE_NO_WARNINGS /D_CRT_NONSTDC_NO_DEPRECATE /D_SCL_SECURE_NO_WARNINGS) | 79 | add_definitions(/D_CRT_SECURE_NO_WARNINGS /D_CRT_NONSTDC_NO_DEPRECATE /D_SCL_SECURE_NO_WARNINGS) |
| 80 | # Avoid windows.h junk | 80 | # Avoid windows.h junk |
| 81 | add_definitions(/DNOMINMAX) | 81 | add_definitions(/DNOMINMAX) |
| 82 | # Avoid windows.h from including some usually unused libs like winsocks.h, since this might cause some redefinition errors. | ||
| 83 | add_definitions(/DWIN32_LEAN_AND_MEAN) | ||
| 82 | 84 | ||
| 83 | # set up output paths for executable binaries (.exe-files, and .dll-files on DLL-capable platforms) | 85 | # set up output paths for executable binaries (.exe-files, and .dll-files on DLL-capable platforms) |
| 84 | set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) | 86 | set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) |
diff --git a/src/citra/citra.cpp b/src/citra/citra.cpp index dd357ff72..14574e56c 100644 --- a/src/citra/citra.cpp +++ b/src/citra/citra.cpp | |||
| @@ -18,7 +18,10 @@ | |||
| 18 | #endif | 18 | #endif |
| 19 | 19 | ||
| 20 | #ifdef _WIN32 | 20 | #ifdef _WIN32 |
| 21 | // windows.h needs to be included before shellapi.h | ||
| 21 | #include <windows.h> | 22 | #include <windows.h> |
| 23 | |||
| 24 | #include <shellapi.h> | ||
| 22 | #endif | 25 | #endif |
| 23 | 26 | ||
| 24 | #include "citra/config.h" | 27 | #include "citra/config.h" |