X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ffdf1b49033b9a2d9cfda3580bc982eeb70cc3d7..9c112555198f51fcec71106530cddba95a17f3dc:/src/xrc/xh_scwin.cpp diff --git a/src/xrc/xh_scwin.cpp b/src/xrc/xh_scwin.cpp index e075827f4e..dababb288f 100644 --- a/src/xrc/xh_scwin.cpp +++ b/src/xrc/xh_scwin.cpp @@ -8,7 +8,7 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "xh_scwin.h" #endif @@ -19,6 +19,8 @@ #pragma hdrstop #endif +#if wxUSE_XRC + #include "wx/xrc/xh_scwin.h" #include "wx/scrolwin.h" #include "wx/frame.h" // to get wxNO_3D @@ -59,3 +61,5 @@ bool wxScrolledWindowXmlHandler::CanHandle(wxXmlNode *node) { return IsOfClass(node, wxT("wxScrolledWindow")); } + +#endif // wxUSE_XRC