Skip to content

Commit

Permalink
fix: Guard windows api definitions in logging.h (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
nnshah1 authored Jun 14, 2024
1 parent 0f2072b commit 4be655b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/triton/common/logging.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 <Windows.h>
#include <windows.h>
#else
#include <sys/time.h>
#include <sys/types.h>
Expand Down

0 comments on commit 4be655b

Please sign in to comment.