Commit abf8fc4c01f88372bc3ddad2aac828c886a467ad

Sam Lantinga 2017-08-29T08:27:23

Fixed check for Mac OS X 10.11+ SDK (thanks Edward Rudd!)

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/include/SDL_config_macosx.h b/include/SDL_config_macosx.h
index 476ef4a..9b09899 100644
--- a/include/SDL_config_macosx.h
+++ b/include/SDL_config_macosx.h
@@ -176,7 +176,7 @@
 
 /* Enable Vulkan support */
 /* Metal/MoltenVK/Vulkan only supported on 64-bit architectures with 10.11+ */
-#if TARGET_CPU_X86_64
+#if TARGET_CPU_X86_64 && (MAC_OS_X_VERSION_MAX_ALLOWED >= 101100)
 #define SDL_VIDEO_VULKAN 1
 #else
 #define  SDL_VIDEO_VULKAN 0