]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/confbase.h
Added wxPrivateDropTarget
[wxWidgets.git] / include / wx / confbase.h
index 604e78fe363fb8c35c7fd53e5be763150eddcfa8..36a9d05efe07985b4536d987cbd6f3cbf4a6f806 100644 (file)
 #pragma interface "confbase.h"
 #endif
 
-// ----------------------------------------------------------------------------
-// compile options
-// ----------------------------------------------------------------------------
+#include "wx/defs.h"
+
+#ifdef wxUSE_CONFIG
 
-// it won't compile without it anyhow
-#ifndef wxUSE_CONFIG
-  #error "Please define wxUSE_CONFIG or remove config.cpp from your makefile"
-#endif // wxUSE_CONFIG
+#include "wx/string.h"
 
 // ----------------------------------------------------------------------------
 // constants
@@ -86,7 +83,7 @@ extern void wxSplitPath(wxArrayString& aParts, const char *sz);
 // Keys are pairs "key_name = value" where value may be of string or integer
 // (long) type (@@@ doubles and other types such as wxDate coming soon).
 // ----------------------------------------------------------------------------
-class wxConfigBase
+class WXDLLEXPORT wxConfigBase
 {
 public:
   // static functions
@@ -222,7 +219,11 @@ public:
 
 protected:
   static bool IsImmutable(const wxString& key)
+  #ifndef __WXMAC__
     { return !key.IsEmpty() && key[0u] == wxCONFIG_IMMUTABLE_PREFIX; }
+  #else
+    { return !key.IsEmpty() && key[0ul] == wxCONFIG_IMMUTABLE_PREFIX; }
+  #endif
 
 private:
   // are we doing automatic environment variable expansion?
@@ -283,7 +284,10 @@ private:
   #define sm_classwxConfig sm_classwxFileConfig
 #endif
 
+#endif 
+  // wxUSE_CONFIG
 
-
-#endif  // _WX_CONFIG_H_
+#endif
+  // _WX_CONFIG_H_