X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c01d5de838da68f602ede699050962072e412ab2..129b8b1a215fc1fcc1b9f06daa0aeaf22bbce614:/src/xrc/xh_menu.cpp?ds=sidebyside diff --git a/src/xrc/xh_menu.cpp b/src/xrc/xh_menu.cpp index 12d8b4a321..217b155c02 100644 --- a/src/xrc/xh_menu.cpp +++ b/src/xrc/xh_menu.cpp @@ -15,16 +15,15 @@ #pragma hdrstop #endif -#if wxUSE_XRC +#if wxUSE_XRC && wxUSE_MENUS #include "wx/xrc/xh_menu.h" #ifndef WX_PRECOMP #include "wx/frame.h" + #include "wx/menu.h" #endif -#include "wx/menu.h" - IMPLEMENT_DYNAMIC_CLASS(wxMenuXmlHandler, wxXmlResourceHandler) wxMenuXmlHandler::wxMenuXmlHandler() : @@ -150,4 +149,4 @@ bool wxMenuBarXmlHandler::CanHandle(wxXmlNode *node) return IsOfClass(node, wxT("wxMenuBar")); } -#endif // wxUSE_XRC +#endif // wxUSE_XRC && wxUSE_MENUS