]> git.saurik.com Git - wxWidgets.git/commitdiff
more MSDOS fixes (config file location)
authorVáclav Slavík <vslavik@fastmail.fm>
Sun, 9 Dec 2001 15:37:51 +0000 (15:37 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Sun, 9 Dec 2001 15:37:51 +0000 (15:37 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12960 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/fileconf.cpp

index 8f1775f0ddd3b967bb871ed6601c4185678d0b14..5c7c706d6e4edccf770eb3a87f8d42e4145c83d6 100644 (file)
@@ -297,8 +297,8 @@ wxString wxFileConfig::GetLocalDir()
 {
   wxString strDir;
 
-#if defined(__WXMAC__)
-  // no local dir concept on Mac OS 9
+#if defined(__WXMAC__) || defined(__DOS__)
+  // no local dir concept on Mac OS 9 or MS-DOS
   return GetGlobalDir() ;
 #else
   wxGetHomeDir(&strDir);
@@ -349,7 +349,7 @@ wxString wxFileConfig::GetLocalFileName(const wxChar *szFile)
 
   str << szFile;
 
-  #ifdef __WXMSW__
+  #if defined(__WINDOWS__) || defined(__DOS__)
     if ( wxStrchr(szFile, wxT('.')) == NULL )
       str << wxT(".ini");
   #endif