From 73a845a327c24e1c0ee99427bada7c0b4bd33427 Mon Sep 17 00:00:00 2001 From: "nullable.type" Date: Sat, 27 Oct 2012 14:07:06 +0200 Subject: [PATCH] Suppress warning C4204 (non-constant aggregate initializer) issued by Visual Studio 2012 due to missing C99 support. --- mongoose.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mongoose.c b/mongoose.c index ccaf5e22..c3edd4a8 100644 --- a/mongoose.c +++ b/mongoose.c @@ -29,6 +29,10 @@ #define __STDC_LIMIT_MACROS // C++ wants that for INT64_MAX #endif +#if defined (_MSC_VER) +#pragma warning (disable : 4204) // non-constant aggregate initializer: issued due to missing C99 support +#endif + // Disable WIN32_LEAN_AND_MEAN. // This makes windows.h always include winsock2.h #ifdef WIN32_LEAN_AND_MEAN