From 1339ce71f695ef7afc16559501884e966f8d8bda Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Wed, 8 Apr 2015 01:42:47 -0400 Subject: [PATCH] Make SDL_stdinc.h work when compiling with -Wundef (thanks, Ben!). Fixes Bugzilla #2664. --- include/SDL_stdinc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/SDL_stdinc.h b/include/SDL_stdinc.h index 7cf0208419567..2a0aba4423330 100644 --- a/include/SDL_stdinc.h +++ b/include/SDL_stdinc.h @@ -226,7 +226,7 @@ typedef uint64_t Uint64; #define SDL_PRINTF_VARARG_FUNC( fmtargnumber ) #define SDL_SCANF_VARARG_FUNC( fmtargnumber ) #else -#if _MSC_VER >= 1600 /* VS 2010 and above */ +#if defined(_MSC_VER) && (_MSC_VER >= 1600) /* VS 2010 and above */ #include #define SDL_IN_BYTECAP(x) _In_bytecount_(x)