X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f80ea77b4a8bac4ab005bfc592f9cd3262ffa397..6a8cbe1b9202ee5eb7a8bfa9b2ce66afeadfad6a:/src/xrc/xh_spin.cpp diff --git a/src/xrc/xh_spin.cpp b/src/xrc/xh_spin.cpp index c6ad0fcf92..15e878c3d3 100644 --- a/src/xrc/xh_spin.cpp +++ b/src/xrc/xh_spin.cpp @@ -8,10 +8,6 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ -#pragma implementation "xh_spin.h" -#endif - // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -19,11 +15,14 @@ #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 +62,8 @@ bool wxSpinButtonXmlHandler::CanHandle(wxXmlNode *node) #if wxUSE_SPINCTRL +#include "wx/spinctrl.h" + IMPLEMENT_DYNAMIC_CLASS(wxSpinCtrlXmlHandler, wxXmlResourceHandler) wxSpinCtrlXmlHandler::wxSpinCtrlXmlHandler() @@ -99,3 +100,5 @@ bool wxSpinCtrlXmlHandler::CanHandle(wxXmlNode *node) } #endif // wxUSE_SPINCTRL + +#endif // wxUSE_XRC