Make definition of WIN32_LEAN_AND_MEAN in event.h conditional.

(Inclusion order might trigger a warning for redefinition on Windows.)
This commit is contained in:
Gilad Benjamini 2010-08-13 17:19:18 -04:00 committed by Nick Mathewson
parent 60433a0a1a
commit 3920172821

View File

@ -178,7 +178,9 @@ extern "C" {
#include <evutil.h>
#ifdef WIN32
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#include <winsock2.h>
#include <windows.h>
#undef WIN32_LEAN_AND_MEAN