Skip to content

Commit 329b5f2

Browse files
committed
fix preprocessor directive for SDL_RESTRICT definition in C99 case.
1 parent 0d58594 commit 329b5f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/SDL3/SDL_begin_code.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,8 +327,8 @@
327327

328328
/* `restrict` is from C99, but __restrict works with both Visual Studio and GCC. */
329329
#ifndef SDL_RESTRICT
330-
# if defined(restrict) || ((defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901)))
331-
# defined SDL_RESTRICT restrict
330+
# if defined(restrict) || ((defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L)))
331+
# define SDL_RESTRICT restrict
332332
# elif defined(_MSC_VER) || defined(__GNUC__) || defined(__clang__)
333333
# define SDL_RESTRICT __restrict
334334
# else

0 commit comments

Comments
 (0)