Commit c12838e2 authored by Sergey Lyubka's avatar Sergey Lyubka

Merge pull request #211 from nigels-com/msc_ver

gcc complains about _MSC_VER being an undefined macro.
parents 743f48b8 fa3e6ce2
...@@ -234,9 +234,9 @@ enum { ...@@ -234,9 +234,9 @@ enum {
// Macros for enabling compiler-specific checks for printf-like arguments. // Macros for enabling compiler-specific checks for printf-like arguments.
#undef PRINTF_FORMAT_STRING #undef PRINTF_FORMAT_STRING
#if _MSC_VER >= 1400 #if defined(_MSC_VER) && _MSC_VER >= 1400
#include <sal.h> #include <sal.h>
#if _MSC_VER > 1400 #if defined(_MSC_VER) && _MSC_VER > 1400
#define PRINTF_FORMAT_STRING(s) _Printf_format_string_ s #define PRINTF_FORMAT_STRING(s) _Printf_format_string_ s
#else #else
#define PRINTF_FORMAT_STRING(s) __format_string s #define PRINTF_FORMAT_STRING(s) __format_string s
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment