From: Vadim Zeitlin <vadim@wxwidgets.org>
Date: Thu, 4 Aug 2005 21:00:49 +0000 (+0000)
Subject: corrected test for HAVE_FSYNC: ifdef, not if
X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/687809e95b61f2326d93b29f02596be51e7ccbe4

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
---

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);