From 3495e2c39b61eda0041dd3081430db3f4d0e32b7 Mon Sep 17 00:00:00 2001 From: Neelay Shah Date: Fri, 14 Jun 2024 15:21:37 -0700 Subject: [PATCH] fix: Guard windows api definitions in logging.h (#120) --- include/triton/common/logging.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/triton/common/logging.h b/include/triton/common/logging.h index e415cd0..42e5c44 100644 --- a/include/triton/common/logging.h +++ b/include/triton/common/logging.h @@ -36,9 +36,11 @@ #include "table_printer.h" #ifdef _WIN32 +// exclude winsock apis +#define WIN32_LEAN_AND_MEAN // suppress the min and max definitions in Windef.h. #define NOMINMAX -#include +#include #else #include #include