Просмотр исходного кода

Enforce the minimum version of macOS to be 10.12

- clock_gettime_nsec_np is not defined until 10.12
Christmas-Missionary 1 месяц назад
Родитель
Сommit
2536a22012
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      include/SDL3/SDL_platform_defines.h

+ 3 - 3
include/SDL3/SDL_platform_defines.h

@@ -221,9 +221,9 @@
  */
  */
 #define SDL_PLATFORM_MACOS 1
 #define SDL_PLATFORM_MACOS 1
 
 
-#if MAC_OS_X_VERSION_MIN_REQUIRED < 1070
-    #error SDL for macOS only supports deploying on 10.7 and above.
-#endif /* MAC_OS_X_VERSION_MIN_REQUIRED < 1070 */
+#if MAC_OS_X_VERSION_MIN_REQUIRED < 101200
+    #error SDL for macOS only supports deploying on 10.12 and above.
+#endif /* MAC_OS_X_VERSION_MIN_REQUIRED < 101200 */
 #endif /* TARGET_OS_IPHONE */
 #endif /* TARGET_OS_IPHONE */
 #endif /* defined(__APPLE__) */
 #endif /* defined(__APPLE__) */