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:
4
configure
vendored
4
configure
vendored
@@ -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;
|
||||
|
@@ -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])]
|
||||
|
Reference in New Issue
Block a user