diff options
author | Ryan C. Gordon <icculus@icculus.org> | 2015-04-08 01:42:47 -0400 |
---|---|---|
committer | Ryan C. Gordon <icculus@icculus.org> | 2015-04-08 01:42:47 -0400 |
commit | 6a0e422ef4d2dbde8524d4f45a92cca2335aa917 (patch) | |
tree | d5825114cd7d8f9c4d115942aa860c28ba42c6a7 | |
parent | 08cc46e72ab4232978185b941aa0627b85a833e4 (diff) | |
download | sdl-6a0e422ef4d2dbde8524d4f45a92cca2335aa917.tar.gz |
Make SDL_stdinc.h work when compiling with -Wundef (thanks, Ben!).
Fixes Bugzilla #2664.
-rw-r--r-- | include/SDL_stdinc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/SDL_stdinc.h b/include/SDL_stdinc.h index 7cf020841..2a0aba442 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 <sal.h> #define SDL_IN_BYTECAP(x) _In_bytecount_(x) |