Fix WinGDI name collision by defining macro NOGDI

TenantState::ERROR collides with WinGDI's #define ERROR 0
This commit is contained in:
Junhyun Shim 2022-07-25 09:11:34 +02:00
parent 7b6f1ca712
commit 2a172e1586
1 changed files with 1 additions and 0 deletions

View File

@ -68,6 +68,7 @@ if(WIN32)
add_definitions(-DBOOST_USE_WINDOWS_H) add_definitions(-DBOOST_USE_WINDOWS_H)
add_definitions(-DWIN32_LEAN_AND_MEAN) add_definitions(-DWIN32_LEAN_AND_MEAN)
add_definitions(-D_ITERATOR_DEBUG_LEVEL=0) add_definitions(-D_ITERATOR_DEBUG_LEVEL=0)
add_definitions(-DNOGDI) # WinGDI.h defines macro ERROR
endif() endif()
if (USE_CCACHE) if (USE_CCACHE)