From 3d768dc96761e283750e0f0550172d181b04fe31 Mon Sep 17 00:00:00 2001 From: Peter Rosin Date: Wed, 25 May 2011 11:04:43 +0200 Subject: [PATCH] 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 (at least with MSVC) --- test/bench.c | 1 + test/bench_cascade.c | 1 + 2 files changed, 2 insertions(+) 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 #endif #ifdef WIN32 +#define WIN32_LEAN_AND_MEAN #include #else #include 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 #endif #ifdef WIN32 +#define WIN32_LEAN_AND_MEAN #include #else #include