]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/file.cpp
Minor header cleaning.
[wxWidgets.git] / src / common / file.cpp
index b44087c38b4725a910b5013b6a36c6783a882cd8..7c494b4d714e4a098df9092890ef3d81adecbe72 100644 (file)
@@ -327,7 +327,7 @@ size_t wxFile::Write(const void *pBuf, size_t nCount)
 // flush
 bool wxFile::Flush()
 {
-#if defined(__VISUALC__) || defined(HAVE_FSYNC)
+#ifdef HAVE_FSYNC
     // fsync() only works on disk files and returns errors for pipes, don't
     // call it then
     if ( IsOpened() && GetKind() == wxFILE_KIND_DISK )
@@ -338,7 +338,7 @@ bool wxFile::Flush()
             return false;
         }
     }
-#endif // fsync
+#endif // HAVE_FSYNC
 
     return true;
 }