From c8ccc915b7e1972efbbc35a678169abc555428ba Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 29 Oct 2006 13:56:43 +0000 Subject: [PATCH] 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 --- src/common/file.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/file.cpp b/src/common/file.cpp index b44087c38b..7c494b4d71 100644 --- a/src/common/file.cpp +++ b/src/common/file.cpp @@ -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; } -- 2.45.2