MSVC/Win32 preprocessor fixes

This commit is contained in:
Iliyas Jorio 2020-12-25 10:00:26 +01:00
parent e7a7ca9663
commit d25687f9f0
2 changed files with 6 additions and 0 deletions

View File

@ -67,6 +67,10 @@ target_include_directories(${PROJECT_NAME} PRIVATE
)
if(MSVC)
# On Win32, we need NOGDI and NOUSER to be able to define some Mac functions
# whose names are otherwise taken by Windows APIs.
target_compile_definitions(${PROJECT_NAME} PRIVATE WIN32_LEAN_AND_MEAN NOGDI NOUSER)
target_compile_options(${PROJECT_NAME} PRIVATE
/EHa
/W4

View File

@ -1,3 +1,5 @@
#undef NOUSER
#include "Platform/Windows/PommeWindows.h"
#include <shlobj.h>