From 0afd3143d838e33dcc2fd3bbb299d7b396f4e1d6 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Mon, 15 Mar 2021 08:43:15 +0100 Subject: [PATCH] support building against iOS 12 SDK where UIMenuElement is not present yet --- include/wx/osx/iphone/chkconf.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/wx/osx/iphone/chkconf.h b/include/wx/osx/iphone/chkconf.h index 6fcd86b4da..815507b903 100644 --- a/include/wx/osx/iphone/chkconf.h +++ b/include/wx/osx/iphone/chkconf.h @@ -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