diff --git a/include/wx/msw/iniconf.h b/include/wx/msw/iniconf.h index c500b2ed42..dc30fd3aa7 100644 --- a/include/wx/msw/iniconf.h +++ b/include/wx/msw/iniconf.h @@ -12,7 +12,9 @@ #ifndef _WX_MSW_INICONF_H_ #define _WX_MSW_INICONF_H_ -#if wxUSE_INICONF +#include "wx/defs.h" + +#if wxUSE_CONFIG && wxUSE_INICONF // ---------------------------------------------------------------------------- // wxIniConfig is a wxConfig implementation which uses MS Windows INI files to @@ -99,6 +101,6 @@ private: DECLARE_ABSTRACT_CLASS(wxIniConfig) }; -#endif // wxUSE_INICONF +#endif // wxUSE_CONFIG && wxUSE_INICONF -#endif //_WX_MSW_INICONF_H_ +#endif // _WX_MSW_INICONF_H_ diff --git a/include/wx/palmos/prefconf.h b/include/wx/palmos/prefconf.h index 6f7a5af4de..dabcaef369 100644 --- a/include/wx/palmos/prefconf.h +++ b/include/wx/palmos/prefconf.h @@ -12,6 +12,10 @@ #ifndef _PREFCONF_H_ #define _PREFCONF_H_ +#include "wx/defs.h" + +#if wxUSE_CONFIG + // ---------------------------------------------------------------------------- // wxPrefConfig // ---------------------------------------------------------------------------- @@ -87,5 +91,6 @@ private: DECLARE_ABSTRACT_CLASS(wxPrefConfig) }; -#endif // _PREFCONF_H_ +#endif // wxUSE_CONFIG +#endif // _PREFCONF_H_