]> git.saurik.com Git - wxWidgets.git/blobdiff - src/xrc/xh_spin.cpp
WinCE doesn't have wxCheckListBox, and doesn't like wxRmDir
[wxWidgets.git] / src / xrc / xh_spin.cpp
index c6ad0fcf92b06e50422ac18aa8a3a6d63ede5fa1..616537b27cd0e8c2654b64b4fe860c42b16d8cc3 100644 (file)
@@ -8,7 +8,7 @@
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
 #pragma implementation "xh_spin.h"
 #endif
 
     #pragma hdrstop
 #endif
 
+#if wxUSE_XRC
+
 #include "wx/xrc/xh_spin.h"
-#include "wx/spinctrl.h"
 
 #if wxUSE_SPINBTN
 
+#include "wx/spinbutt.h"
+
 IMPLEMENT_DYNAMIC_CLASS(wxSpinButtonXmlHandler, wxXmlResourceHandler)
 
 wxSpinButtonXmlHandler::wxSpinButtonXmlHandler()
@@ -63,6 +66,8 @@ bool wxSpinButtonXmlHandler::CanHandle(wxXmlNode *node)
 
 #if wxUSE_SPINCTRL
 
+#include "wx/spinctrl.h"
+
 IMPLEMENT_DYNAMIC_CLASS(wxSpinCtrlXmlHandler, wxXmlResourceHandler)
 
 wxSpinCtrlXmlHandler::wxSpinCtrlXmlHandler()
@@ -99,3 +104,5 @@ bool wxSpinCtrlXmlHandler::CanHandle(wxXmlNode *node)
 }
 
 #endif // wxUSE_SPINCTRL
+
+#endif // wxUSE_XRC