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
This commit is contained in:
Vadim Zeitlin 2005-08-04 21:00:49 +00:00
parent 38b4a946f3
commit 687809e95b

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