X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/40ff126ac4ff57ab4aa22a5c7c7ce621479e8739..18591d70d9f37ca7af5208c68d4647192b07740d:/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