git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12960 
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
-#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);
   return GetGlobalDir() ;
 #else
   wxGetHomeDir(&strDir);
+  #if defined(__WINDOWS__) || defined(__DOS__)
     if ( wxStrchr(szFile, wxT('.')) == NULL )
       str << wxT(".ini");
   #endif
     if ( wxStrchr(szFile, wxT('.')) == NULL )
       str << wxT(".ini");
   #endif