From: Gilad Benjamini Date: Fri, 13 Aug 2010 21:19:18 +0000 (-0400) Subject: Make definition of WIN32_LEAN_AND_MEAN in event.h conditional. X-Git-Tag: release-2.0.7-rc~38 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3920172821c2ad7862c2e4dab4d45adb1356a724;p=libevent Make definition of WIN32_LEAN_AND_MEAN in event.h conditional. (Inclusion order might trigger a warning for redefinition on Windows.) --- diff --git a/event.h b/event.h index 3f083c86..e75e0756 100644 --- a/event.h +++ b/event.h @@ -178,7 +178,9 @@ extern "C" { #include #ifdef WIN32 +#ifndef WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN +#endif #include #include #undef WIN32_LEAN_AND_MEAN