guarding implementation against compilation under iOS SDK < 13

This commit is contained in:
Stefan Csomor 2021-03-15 11:35:48 +01:00
parent 4455b6e784
commit eff81745ba
2 changed files with 8 additions and 0 deletions

View File

@ -28,6 +28,8 @@
#include "wx/menu.h" #include "wx/menu.h"
#if wxUSE_MENUS
#include "wx/osx/private.h" #include "wx/osx/private.h"
// other standard headers // other standard headers
@ -322,3 +324,5 @@ wxMenuImpl* wxMenuImpl::Create( wxMenu* peer, const wxString& title )
wxMenuImpl* c = new wxMenuCocoaImpl( peer, nil ); wxMenuImpl* c = new wxMenuCocoaImpl( peer, nil );
return c; return c;
} }
#endif

View File

@ -13,6 +13,8 @@
#include "wx/menuitem.h" #include "wx/menuitem.h"
#include "wx/stockitem.h" #include "wx/stockitem.h"
#if wxUSE_MENUS
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/app.h" #include "wx/app.h"
#include "wx/log.h" #include "wx/log.h"
@ -328,3 +330,5 @@ wxMenuItemImpl* wxMenuItemImpl::Create( wxMenuItem* peer, wxMenu *pParentMenu,
c = new wxMenuItemCocoaImpl( peer, item ); c = new wxMenuItemCocoaImpl( peer, item );
return c; return c;
} }
#endif