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.
This commit is contained in:
Vadim Zeitlin
2020-07-05 23:46:34 +02:00
parent d3812ab091
commit b85d4fc758
2 changed files with 8 additions and 0 deletions

4
configure vendored
View File

@@ -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;

View File

@@ -1367,12 +1367,16 @@ version or omitting it entirely."
#include <Availability.h>
],
[
#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])]