From 3770020b7440288fe26ec94e2d1a82ff43176aa9 Mon Sep 17 00:00:00 2001 From: Sergey Lyubka Date: Sun, 14 Oct 2012 15:08:43 +0100 Subject: [PATCH] Remove winsock include - windows.h does that for us --- mongoose.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mongoose.c b/mongoose.c index 360c0648..b72fa76a 100644 --- a/mongoose.c +++ b/mongoose.c @@ -29,8 +29,10 @@ #define __STDC_LIMIT_MACROS // C++ wants that for INT64_MAX #endif +// Disable WIN32_LEAN_AND_MEAN. +// This makes windows.h always include winsock2.h #ifdef WIN32_LEAN_AND_MEAN -#undef WIN32_LEAN_AND_MEAN // Disable WIN32_LEAN_AND_MEAN, if necessary +#undef WIN32_LEAN_AND_MEAN #endif #if defined(__SYMBIAN32__) @@ -59,9 +61,7 @@ #if defined(_WIN32) && !defined(__SYMBIAN32__) // Windows specific #define _WIN32_WINNT 0x0400 // To make it link in VS2005 -#include #include -#include #ifndef PATH_MAX #define PATH_MAX MAX_PATH