]> git.saurik.com Git - wxWidgets.git/blobdiff - src/xrc/xh_text.cpp
DC headers don't need to be in gtk/private.h
[wxWidgets.git] / src / xrc / xh_text.cpp
index fa824f48cbbfce3f84d5c611f26fb5e632f82751..e369cb4f790662e8511c19bf276949d9a6f5c30d 100644 (file)
     #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