Skip to content

Commit

Permalink
Merge pull request cesanta#211 from nigels-com/msc_ver
Browse files Browse the repository at this point in the history
gcc complains about _MSC_VER being an undefined macro.
  • Loading branch information
cpq committed Aug 9, 2013
2 parents 743f48b + fa3e6ce commit c12838e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mongoose.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 <sal.h>
#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
Expand Down

0 comments on commit c12838e

Please sign in to comment.