Skip to content

Commit 0d58594

Browse files
committed
fix inverted __STDC_VERSION__ condition in SDL_RESTRICT definition.
1 parent 6a68618 commit 0d58594

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/SDL3/SDL_begin_code.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@
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)))
330+
# if defined(restrict) || ((defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901)))
331331
# defined SDL_RESTRICT restrict
332332
# elif defined(_MSC_VER) || defined(__GNUC__) || defined(__clang__)
333333
# define SDL_RESTRICT __restrict

0 commit comments

Comments
 (0)