From cd71293400b25ff967cd032b8e1998b403003890 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 2 Jun 1998 13:23:24 +0000 Subject: [PATCH] added #if USE_WXCONFIG check (TODO: add configure switch for it) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/config.h | 14 ++++++++++++-- include/wx/fileconf.h | 9 +++++++++ 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/include/wx/config.h b/include/wx/config.h index 07ddc77804..2f1a93cfe4 100644 --- a/include/wx/config.h +++ b/include/wx/config.h @@ -1,6 +1,7 @@ /////////////////////////////////////////////////////////////////////////////// -// Name: -// Purpose: +// Name: config.h +// Purpose: declaration of the base class of all config implementations +// (see also: fileconf.h and msw/regconf.h) // Author: Karsten Ballüder & Vadim Zeitlin // Modified by: // Created: 07.04.98 (adapted from appconf.h) @@ -13,6 +14,15 @@ #ifndef _APPCONF_H #define _APPCONF_H +// ---------------------------------------------------------------------------- +// compile options +// ---------------------------------------------------------------------------- + +// it won't compile without it anyhow +#ifndef USE_WXCONFIG + #error "Please define USE_WXCONFIG or remove config.cpp from your makefile" +#endif // USE_WXCONFIG + // ---------------------------------------------------------------------------- // constants // ---------------------------------------------------------------------------- diff --git a/include/wx/fileconf.h b/include/wx/fileconf.h index 88ffaf9dcc..97c03c8ffa 100644 --- a/include/wx/fileconf.h +++ b/include/wx/fileconf.h @@ -16,6 +16,15 @@ #ifndef _FILECONF_H #define _FILECONF_H +// ---------------------------------------------------------------------------- +// compile options +// ---------------------------------------------------------------------------- + +// it won't compile without it anyhow +#ifndef USE_WXCONFIG + #error "Please define USE_WXCONFIG or remove fileconf.cpp from your makefile" +#endif // USE_WXCONFIG + // ---------------------------------------------------------------------------- // wxFileConfig // ----------------------------------------------------------------------------