From 687809e95b61f2326d93b29f02596be51e7ccbe4 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 4 Aug 2005 21:00:49 +0000 Subject: [PATCH] corrected test for HAVE_FSYNC: ifdef, not if git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35101 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/file.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/file.cpp b/src/common/file.cpp index 1e6f0e41e1..d72e649bc8 100644 --- a/src/common/file.cpp +++ b/src/common/file.cpp @@ -335,7 +335,7 @@ size_t wxFile::Write(const void *pBuf, size_t nCount) bool wxFile::Flush() { if ( IsOpened() ) { -#if defined(__VISUALC__) || HAVE_FSYNC +#if defined(__VISUALC__) || defined(HAVE_FSYNC) if ( wxFsync(m_fd) == -1 ) { wxLogSysError(_("can't flush file descriptor %d"), m_fd);