From b85d4fc758203f0c1888baa8aa132ce6e992bcc8 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 5 Jul 2020 23:46:34 +0200 Subject: [PATCH] Don't check macOS symbols when building for iOS in configure We should probably check __IPHONE_OS_VERSION_MIN_REQUIRED and maybe MAX_ALLOWED too, but for now just don't give an error in wxiOS builds. --- configure | 4 ++++ configure.in | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/configure b/configure index c4eadcb9cb..843fe1bbb5 100755 --- a/configure +++ b/configure @@ -18786,12 +18786,16 @@ int main () { + #if defined(__MAC_OS_X_VERSION_MIN_REQUIRED) #if __MAC_OS_X_VERSION_MIN_REQUIRED < 101000 #error macOS versions < 10.10 are not supported. #endif #if __MAC_OS_X_VERSION_MAX_ALLOWED < 101100 #error macOS SDK version is too low, 10.11 or later is required. #endif + #elif !defined(__IPHONE_OS_VERSION_MIN_REQUIRED) + #error unrecognized platform + #endif ; return 0; diff --git a/configure.in b/configure.in index 47129cd400..620c99ba3a 100644 --- a/configure.in +++ b/configure.in @@ -1367,12 +1367,16 @@ version or omitting it entirely." #include ], [ + #if defined(__MAC_OS_X_VERSION_MIN_REQUIRED) #if __MAC_OS_X_VERSION_MIN_REQUIRED < 101000 #error macOS versions < 10.10 are not supported. #endif #if __MAC_OS_X_VERSION_MAX_ALLOWED < 101100 #error macOS SDK version is too low, 10.11 or later is required. #endif + #elif !defined(__IPHONE_OS_VERSION_MIN_REQUIRED) + #error unrecognized platform + #endif ], [AC_MSG_RESULT([yes])], [AC_MSG_FAILURE([$error_message])]