support building against iOS 12 SDK

where UIMenuElement is not present yet
This commit is contained in:
Stefan Csomor
2021-03-15 08:43:15 +01:00
parent d2913e560e
commit 0afd3143d8

View File

@@ -255,7 +255,12 @@
#if wxUSE_MENUS
#undef wxUSE_MENUS
// we are basing our implementatino on UIMenuElement
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 130000
#define wxUSE_MENUS 1
#else
#define wxUSE_MENUS 0
#endif
#endif
#if wxUSE_MENUBAR