]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/fileconf.cpp
check that file was closed successfully in wxCopyFile (bug 414987 )
[wxWidgets.git] / src / common / fileconf.cpp
index bf8103304c2fb59aa2ac2483d5c1fc2808dba1d9..b8fec80df7fd69b353769b2fb99f4c25fcf04b5c 100644 (file)
@@ -797,7 +797,7 @@ bool wxFileConfig::Flush(bool /* bCurrentOnly */)
 
   bool ret = file.Commit();
 
-#ifdef __WXMAC__
+#if defined(__WXMAC__) && !defined(__UNIX__)
   if ( ret )
   {
        FSSpec spec ;
@@ -811,7 +811,7 @@ bool wxFileConfig::Flush(bool /* bCurrentOnly */)
                FSpSetFInfo( &spec , &finfo ) ;
        }
   }
-#endif // __WXMAC__
+#endif // __WXMAC__ && !__UNIX__
 
 #ifdef __UNIX__
   // restore the old umask if we changed it