diff --git a/include/wx/osx/core/private.h b/include/wx/osx/core/private.h index fa628e7127..5a227e3368 100644 --- a/include/wx/osx/core/private.h +++ b/include/wx/osx/core/private.h @@ -103,6 +103,7 @@ typedef wxMacControl wxWidgetImplType; typedef wxWidgetImpl wxWidgetImplType; #endif +#if wxUSE_MENUS class wxMenuItemImpl : public wxObject { public : @@ -163,7 +164,7 @@ protected : DECLARE_ABSTRACT_CLASS(wxMenuItemImpl) } ; - +#endif class WXDLLIMPEXP_CORE wxWidgetImpl : public wxObject