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:
parent
f49ad976f4
commit
c8ccc915b7
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user