iOS: Fix compiling using the iOS 7 SDK, partially broken since MoltenVK support was added.
authorAlex Szpakowski <slime73@gmail.com>
Thu, 21 Sep 2017 20:11:44 -0300
changeset 1151460aaf59fd191
parent 11513 5eafaa1085a1
child 11515 e8bebab644b0
iOS: Fix compiling using the iOS 7 SDK, partially broken since MoltenVK support was added.

Note that apps submitted to the iOS App Store *must* use a modern iOS SDK (currently iOS 10 is probably the minimum), however the SDK used to build is separate from the minimum iOS version an app supports at runtime.
include/SDL_config_iphoneos.h
     1.1 --- a/include/SDL_config_iphoneos.h	Thu Sep 21 14:48:03 2017 -0700
     1.2 +++ b/include/SDL_config_iphoneos.h	Thu Sep 21 20:11:44 2017 -0300
     1.3 @@ -140,8 +140,8 @@
     1.4  #define SDL_VIDEO_RENDER_OGL_ES 1
     1.5  #define SDL_VIDEO_RENDER_OGL_ES2    1
     1.6  
     1.7 -/* Enable Vulkan support */
     1.8 -#if !TARGET_OS_SIMULATOR && !TARGET_CPU_ARM // Only 64-bit devices have Metal
     1.9 +/* Enable Vulkan support on 64-bit devices when an iOS 8+ SDK is used. */
    1.10 +#if !TARGET_OS_SIMULATOR && !TARGET_CPU_ARM && defined(__IPHONE_8_0)
    1.11  #define SDL_VIDEO_VULKAN 1
    1.12  #else
    1.13  #define SDL_VIDEO_VULKAN 0