diff options
author | Peter Rosin <peda@lysator.liu.se> | 2011-05-25 11:04:43 +0200 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-05-25 19:44:06 -0400 |
commit | 3d768dc96761e283750e0f0550172d181b04fe31 (patch) | |
tree | 00d7f133ec8288591edbe18af246b85ff97a8c74 /test | |
parent | 8fa030c032d63871b4434333c1d1e1ff98a81052 (diff) | |
download | libevent-3d768dc96761e283750e0f0550172d181b04fe31.tar.gz |
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)
Diffstat (limited to 'test')
-rw-r--r-- | test/bench.c | 1 | ||||
-rw-r--r-- | test/bench_cascade.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/test/bench.c b/test/bench.c index c92bee3b..1d25076e 100644 --- a/test/bench.c +++ b/test/bench.c @@ -41,6 +41,7 @@ #include <sys/time.h> #endif #ifdef WIN32 +#define WIN32_LEAN_AND_MEAN #include <windows.h> #else #include <sys/socket.h> diff --git a/test/bench_cascade.c b/test/bench_cascade.c index fef174fa..908c6170 100644 --- a/test/bench_cascade.c +++ b/test/bench_cascade.c @@ -33,6 +33,7 @@ #include <sys/time.h> #endif #ifdef WIN32 +#define WIN32_LEAN_AND_MEAN #include <windows.h> #else #include <sys/socket.h> |