Quellcode durchsuchen

fix inverted __STDC_VERSION__ condition in SDL_RESTRICT definition.

Ozkan Sezer vor 4 Monaten
Ursprung
Commit
0d58594e66
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      include/SDL3/SDL_begin_code.h

+ 1 - 1
include/SDL3/SDL_begin_code.h

@@ -327,7 +327,7 @@
 
 
 /* `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__ >= 199901)))
 #    defined SDL_RESTRICT restrict
 #    defined 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