X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/40ff126ac4ff57ab4aa22a5c7c7ce621479e8739..9d5507f7a2701395e1d5c121bd877bb9066ee6ea:/src/xrc/xh_text.cpp?ds=sidebyside diff --git a/src/xrc/xh_text.cpp b/src/xrc/xh_text.cpp index fa824f48cb..e369cb4f79 100644 --- a/src/xrc/xh_text.cpp +++ b/src/xrc/xh_text.cpp @@ -15,10 +15,13 @@ #pragma hdrstop #endif -#if wxUSE_XRC +#if wxUSE_XRC && wxUSE_TEXTCTRL #include "wx/xrc/xh_text.h" -#include "wx/textctrl.h" + +#ifndef WX_PRECOMP + #include "wx/textctrl.h" +#endif IMPLEMENT_DYNAMIC_CLASS(wxTextCtrlXmlHandler, wxXmlResourceHandler) @@ -73,4 +76,4 @@ bool wxTextCtrlXmlHandler::CanHandle(wxXmlNode *node) return IsOfClass(node, wxT("wxTextCtrl")); } -#endif // wxUSE_XRC +#endif // wxUSE_XRC && wxUSE_TEXTCTRL