// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#ifdef __GNUG__
-#pragma implementation "xh_tglbtn.h"
-#endif
-
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
#pragma hdrstop
#endif
+#if wxUSE_XRC && wxUSE_TOGGLEBTN
+
#include "wx/xrc/xh_tglbtn.h"
#include "wx/tglbtn.h"
-#if wxUSE_TOGGLEBTN
-
IMPLEMENT_DYNAMIC_CLASS(wxToggleButtonXmlHandler, wxXmlResourceHandler)
wxToggleButtonXmlHandler::wxToggleButtonXmlHandler()
return IsOfClass(node, wxT("wxToggleButton"));
}
-#endif
+#endif // wxUSE_XRC && wxUSE_TOGGLEBTN