]> git.saurik.com Git - wxWidgets.git/commitdiff
corrected test for HAVE_FSYNC: ifdef, not if
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 4 Aug 2005 21:00:49 +0000 (21:00 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 4 Aug 2005 21:00:49 +0000 (21:00 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35101 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/file.cpp

index 1e6f0e41e1a70f3bbd42ce17265dea3ee7a669cb..d72e649bc8e3dac11d97369f25d3b244e6390914 100644 (file)
@@ -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);