]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/file.cpp
Better fix for 'int i' used twice in the same block.
[wxWidgets.git] / 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);