X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f80ea77b4a8bac4ab005bfc592f9cd3262ffa397..b6cf9ad090a3ab83c3f14043af9798b61eaff1d3:/src/xrc/xh_gdctl.cpp?ds=inline diff --git a/src/xrc/xh_gdctl.cpp b/src/xrc/xh_gdctl.cpp index 5a8226ebb7..37a01cecc7 100644 --- a/src/xrc/xh_gdctl.cpp +++ b/src/xrc/xh_gdctl.cpp @@ -8,7 +8,7 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "xh_gdctl.h" #endif @@ -19,8 +19,7 @@ #pragma hdrstop #endif -#include "wx/defs.h" -#if wxUSE_DIRDLG +#if wxUSE_XRC && wxUSE_DIRDLG #include "wx/textctrl.h" #include "wx/xrc/xh_gdctl.h" @@ -61,4 +60,4 @@ bool wxGenericDirCtrlXmlHandler::CanHandle(wxXmlNode *node) return IsOfClass(node, wxT("wxGenericDirCtrl")); } -#endif +#endif // wxUSE_XRC && wxUSE_DIRDLG