X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3e2656801d825761f55ea9b0b766802c6cd32f1d..f55fee08e9d56f3994e0af75efe179d14a6258e7:/src/xrc/xh_tglbtn.cpp diff --git a/src/xrc/xh_tglbtn.cpp b/src/xrc/xh_tglbtn.cpp index 1e6219ca12..637e238434 100644 --- a/src/xrc/xh_tglbtn.cpp +++ b/src/xrc/xh_tglbtn.cpp @@ -8,7 +8,7 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "xh_tglbtn.h" #endif @@ -19,11 +19,11 @@ #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() @@ -55,4 +55,4 @@ bool wxToggleButtonXmlHandler::CanHandle(wxXmlNode *node) return IsOfClass(node, wxT("wxToggleButton")); } -#endif +#endif // wxUSE_XRC && wxUSE_TOGGLEBTN