From fa3e6ce27104115644d10e3116d3135c5f94f691 Mon Sep 17 00:00:00 2001 From: Nigel Stewart Date: Thu, 8 Aug 2013 22:08:00 -0500 Subject: [PATCH] gcc complains about _MSC_VER being an undefined macro. --- mongoose.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mongoose.h b/mongoose.h index 0e734329..5e825794 100644 --- a/mongoose.h +++ b/mongoose.h @@ -234,9 +234,9 @@ enum { // Macros for enabling compiler-specific checks for printf-like arguments. #undef PRINTF_FORMAT_STRING -#if _MSC_VER >= 1400 +#if defined(_MSC_VER) && _MSC_VER >= 1400 #include -#if _MSC_VER > 1400 +#if defined(_MSC_VER) && _MSC_VER > 1400 #define PRINTF_FORMAT_STRING(s) _Printf_format_string_ s #else #define PRINTF_FORMAT_STRING(s) __format_string s