Skip to content

Commit 38bfde8

Browse files
authored
Fix a macro regression when using MSVC (#106)
1 parent a3523a3 commit 38bfde8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ target_include_directories(
4242
${PROJECT_SOURCE_DIR}/trantor/net/inner
4343
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/third_party/wepoll>)
4444

45-
if(WIN32)
45+
if(MINGW)
4646
target_compile_definitions(
4747
${PROJECT_NAME}
4848
PUBLIC -D_WIN32_WINNT=0x0601)
49-
endif(WIN32)
49+
endif(MINGW)
5050

5151
set(TRANTOR_SOURCES
5252
trantor/utils/AsyncFileLogger.cc

0 commit comments

Comments
 (0)