]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/config.cpp
compilation problem fixed
[wxWidgets.git] / src / common / config.cpp
index 6a4eff0b33a32f6917fec10d582371ab72431e65..47cf94f498f0856c203c6e6e7a86e3c4f6e8bc39 100644 (file)
 // Licence:     wxWindows license
 ///////////////////////////////////////////////////////////////////////////////
 
-// ============================================================================
-// declarations
-// ============================================================================
-
 // ----------------------------------------------------------------------------
 // headers
 // ----------------------------------------------------------------------------
 
 #include  "wx/wxprec.h"
 
+#ifndef WX_PRECOMP
+#include  "wx/wx.h"
+#endif
+
+#include  <wx/confbase.h>
+
+#ifdef wxUSE_CONFIG
+
 #ifdef    __BORLANDC__
   #pragma hdrstop
 #endif  //__BORLANDC__
 
-#ifndef WX_PRECOMP
-  #include  <wx/string.h>
-  #include  <wx/intl.h>
-#endif //WX_PRECOMP
-
 #include  <wx/app.h>
 #include  <wx/file.h>
 #include  <wx/log.h>
 #include  <wx/textfile.h>
-#include  <wx/confbase.h>
 #include  <wx/utils.h>
 
 // we must include (one of) these files for wxConfigBase::Create
@@ -211,15 +209,14 @@ bool wxConfigBase::Write(const wxString& key, bool value)
 }
 
 wxString wxConfigBase::ExpandEnvVars(const wxString& str) const
-    {
-        wxString tmp; // Required for BC++
-        if (IsExpandingEnvVars())
-            tmp = wxExpandEnvVars(str);
-        else
-            tmp = str;
-        return tmp;
-    }
-
+{
+    wxString tmp; // Required for BC++
+    if (IsExpandingEnvVars())
+        tmp = wxExpandEnvVars(str);
+    else
+        tmp = str;
+    return tmp;
+}
 
 // ----------------------------------------------------------------------------
 // wxConfigPathChanger
@@ -276,9 +273,9 @@ wxString wxExpandEnvVars(const wxString& str)
   {
     Bracket_None,
     Bracket_Normal  = ')',
-    Bracket_Curly   = '}',
+    Bracket_Curly   = '}'
 #ifdef  __WXMSW__
-    Bracket_Windows = '%'     // yeah, Windows people are a bit strange ;-)
+    ,Bracket_Windows = '%'     // yeah, Windows people are a bit strange ;-)
 #endif
   };
 
@@ -411,4 +408,7 @@ void wxSplitPath(wxArrayString& aParts, const char *sz)
   }
 }
 
+#endif
+
+  // wxUSE_CONFIG