mirror of
https://github.com/jorio/Pomme.git
synced 2024-12-27 21:31:47 +00:00
MSVC/Win32 preprocessor fixes
This commit is contained in:
parent
e7a7ca9663
commit
d25687f9f0
@ -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
|
||||
|
@ -1,3 +1,5 @@
|
||||
#undef NOUSER
|
||||
|
||||
#include "Platform/Windows/PommeWindows.h"
|
||||
|
||||
#include <shlobj.h>
|
||||
|
Loading…
Reference in New Issue
Block a user