summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPeter Rosin <peda@lysator.liu.se>2011-05-25 11:04:43 +0200
committerNick Mathewson <nickm@torproject.org>2011-05-25 19:44:06 -0400
commit3d768dc96761e283750e0f0550172d181b04fe31 (patch)
tree00d7f133ec8288591edbe18af246b85ff97a8c74 /test
parent8fa030c032d63871b4434333c1d1e1ff98a81052 (diff)
downloadlibevent-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.c1
-rw-r--r--test/bench_cascade.c1
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>