]> git.saurik.com Git - wxWidgets.git/commitdiff
added #if USE_WXCONFIG check (TODO: add configure switch for it)
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 2 Jun 1998 13:23:24 +0000 (13:23 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 2 Jun 1998 13:23:24 +0000 (13:23 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/config.h
include/wx/fileconf.h

index 07ddc77804cd14d894c21a2dec73545c85b90789..2f1a93cfe4a80325d4903f454aa4400fe8cf4af0 100644 (file)
@@ -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)
 #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
 // ----------------------------------------------------------------------------
index 88ffaf9dcccffee6a1e7cc0f73cbc55852be87da..97c03c8ffa73cd7b8592eedaa30e7acfaf4a305f 100644 (file)
 #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
 // ----------------------------------------------------------------------------