X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/88a7a4e10ed18f81a576dcd866cfbf02bf404c00..6d7b547184bfdcdf67790755deb0122050b1d728:/src/xrc/xh_choic.cpp diff --git a/src/xrc/xh_choic.cpp b/src/xrc/xh_choic.cpp index a3903f7836..c26bf71eea 100644 --- a/src/xrc/xh_choic.cpp +++ b/src/xrc/xh_choic.cpp @@ -15,16 +15,15 @@ #pragma hdrstop #endif -#if wxUSE_XRC +#if wxUSE_XRC && wxUSE_CHOICE #include "wx/xrc/xh_choic.h" #ifndef WX_PRECOMP #include "wx/intl.h" + #include "wx/choice.h" #endif -#include "wx/choice.h" - IMPLEMENT_DYNAMIC_CLASS(wxChoiceXmlHandler, wxXmlResourceHandler) wxChoiceXmlHandler::wxChoiceXmlHandler() @@ -96,4 +95,4 @@ bool wxChoiceXmlHandler::CanHandle(wxXmlNode *node) (m_insideBox && node->GetName() == wxT("item"))); } -#endif // wxUSE_XRC +#endif // wxUSE_XRC && wxUSE_CHOICE