Fix winsock2.h #include issues with MSVC

Define WIN32_LEAN_AND_MEAN, so that windows.h does not bring in
winsock.h which in turn makes it impossible to #include <winsock2.h>
(at least with MSVC)
This commit is contained in:
Peter Rosin 2011-05-25 11:04:43 +02:00 committed by Nick Mathewson
parent 8fa030c032
commit 3d768dc967
2 changed files with 2 additions and 0 deletions

View File

@ -41,6 +41,7 @@
#include <sys/time.h>
#endif
#ifdef WIN32
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#else
#include <sys/socket.h>

View File

@ -33,6 +33,7 @@
#include <sys/time.h>
#endif
#ifdef WIN32
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#else
#include <sys/socket.h>