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