From ac7821f9bff39e4187285be48b9474fdda707607 Mon Sep 17 00:00:00 2001 From: PeterTh Date: Wed, 10 Jul 2019 16:54:40 +0200 Subject: [PATCH] Prevent NEAR and FAR macro definitions from leaking on Windows platforms --- include/spdlog/details/os-inl.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/spdlog/details/os-inl.h b/include/spdlog/details/os-inl.h index 0675436b..0005fe4d 100644 --- a/include/spdlog/details/os-inl.h +++ b/include/spdlog/details/os-inl.h @@ -32,6 +32,10 @@ #include // _get_pid support #include +// windows.h leaks NEAR and FAR macros, prevent those from leaking further +#undef NEAR +#undef FAR + #ifdef __MINGW32__ #include #endif