Skip to content

Commit 4be655b

Browse files
authored
fix: Guard windows api definitions in logging.h (#120)
1 parent 0f2072b commit 4be655b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

include/triton/common/logging.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,11 @@
3636

3737
#include "table_printer.h"
3838
#ifdef _WIN32
39+
// exclude winsock apis
40+
#define WIN32_LEAN_AND_MEAN
3941
// suppress the min and max definitions in Windef.h.
4042
#define NOMINMAX
41-
#include <Windows.h>
43+
#include <windows.h>
4244
#else
4345
#include <sys/time.h>
4446
#include <sys/types.h>

0 commit comments

Comments
 (0)