use just HAVE_FSYNC as wxFsync() guard, it is now defined if wxFsync() is

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42616 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2006-10-29 13:56:43 +00:00
parent f49ad976f4
commit c8ccc915b7

View File

@@ -327,7 +327,7 @@ size_t wxFile::Write(const void *pBuf, size_t nCount)
// flush // flush
bool wxFile::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 // fsync() only works on disk files and returns errors for pipes, don't
// call it then // call it then
if ( IsOpened() && GetKind() == wxFILE_KIND_DISK ) if ( IsOpened() && GetKind() == wxFILE_KIND_DISK )
@@ -338,7 +338,7 @@ bool wxFile::Flush()
return false; return false;
} }
} }
#endif // fsync #endif // HAVE_FSYNC
return true; return true;
} }