mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-28 03:26:15 +08:00
fix preprocessor directive for SDL_RESTRICT definition in C99 case.
This commit is contained in:
@@ -327,8 +327,8 @@
|
|||||||
|
|
||||||
/* `restrict` is from C99, but __restrict works with both Visual Studio and GCC. */
|
/* `restrict` is from C99, but __restrict works with both Visual Studio and GCC. */
|
||||||
#ifndef SDL_RESTRICT
|
#ifndef SDL_RESTRICT
|
||||||
# if defined(restrict) || ((defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901)))
|
# if defined(restrict) || ((defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L)))
|
||||||
# defined SDL_RESTRICT restrict
|
# define SDL_RESTRICT restrict
|
||||||
# elif defined(_MSC_VER) || defined(__GNUC__) || defined(__clang__)
|
# elif defined(_MSC_VER) || defined(__GNUC__) || defined(__clang__)
|
||||||
# define SDL_RESTRICT __restrict
|
# define SDL_RESTRICT __restrict
|
||||||
# else
|
# else
|
||||||
|
|||||||
Reference in New Issue
Block a user