diff --git a/lib/auto_reset_event.cpp b/lib/auto_reset_event.cpp index 66c04e2d..f0698a08 100644 --- a/lib/auto_reset_event.cpp +++ b/lib/auto_reset_event.cpp @@ -6,7 +6,9 @@ #include "auto_reset_event.hpp" #if CPPCORO_OS_WINNT -# define WIN32_LEAN_AND_MEAN +# ifndef WIN32_LEAN_AND_MEAN +# define WIN32_LEAN_AND_MEAN +# endif # include # include #endif diff --git a/lib/spin_wait.cpp b/lib/spin_wait.cpp index 47263277..a74a4c44 100644 --- a/lib/spin_wait.cpp +++ b/lib/spin_wait.cpp @@ -9,7 +9,9 @@ #include #if CPPCORO_OS_WINNT -# define WIN32_LEAN_AND_MEAN +# ifndef WIN32_LEAN_AND_MEAN +# define WIN32_LEAN_AND_MEAN +# endif # include #endif