Fix -Wundef warnings in iOS build

Make sure <Availability.h> is always included in macOS/iOS build.
This commit is contained in:
Maarten Bent 2021-07-18 14:57:00 +02:00
parent 8b0decdf9d
commit 8fe396d890

View File

@ -415,6 +415,7 @@
#ifdef __WXOSX__
/* setup precise defines according to sdk used */
# include <TargetConditionals.h>
# include <Availability.h>
# if defined(__WXOSX_IPHONE__)
# if !( defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE )
# error "incorrect SDK for an iPhone build"