From eff81745ba7d8a64038e30b078412961ed004531 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Mon, 15 Mar 2021 11:35:48 +0100 Subject: [PATCH] guarding implementation against compilation under iOS SDK < 13 --- src/osx/iphone/menu.mm | 4 ++++ src/osx/iphone/menuitem.mm | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/osx/iphone/menu.mm b/src/osx/iphone/menu.mm index b64aaf3fa6..29619377d9 100644 --- a/src/osx/iphone/menu.mm +++ b/src/osx/iphone/menu.mm @@ -28,6 +28,8 @@ #include "wx/menu.h" +#if wxUSE_MENUS + #include "wx/osx/private.h" // other standard headers @@ -322,3 +324,5 @@ wxMenuImpl* wxMenuImpl::Create( wxMenu* peer, const wxString& title ) wxMenuImpl* c = new wxMenuCocoaImpl( peer, nil ); return c; } + +#endif diff --git a/src/osx/iphone/menuitem.mm b/src/osx/iphone/menuitem.mm index cdc1e35e02..1863e0ccd7 100644 --- a/src/osx/iphone/menuitem.mm +++ b/src/osx/iphone/menuitem.mm @@ -13,6 +13,8 @@ #include "wx/menuitem.h" #include "wx/stockitem.h" +#if wxUSE_MENUS + #ifndef WX_PRECOMP #include "wx/app.h" #include "wx/log.h" @@ -328,3 +330,5 @@ wxMenuItemImpl* wxMenuItemImpl::Create( wxMenuItem* peer, wxMenu *pParentMenu, c = new wxMenuItemCocoaImpl( peer, item ); return c; } + +#endif