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:
parent
38b4a946f3
commit
687809e95b
@ -335,7 +335,7 @@ size_t wxFile::Write(const void *pBuf, size_t nCount)
|
|||||||
bool wxFile::Flush()
|
bool wxFile::Flush()
|
||||||
{
|
{
|
||||||
if ( IsOpened() ) {
|
if ( IsOpened() ) {
|
||||||
#if defined(__VISUALC__) || HAVE_FSYNC
|
#if defined(__VISUALC__) || defined(HAVE_FSYNC)
|
||||||
if ( wxFsync(m_fd) == -1 )
|
if ( wxFsync(m_fd) == -1 )
|
||||||
{
|
{
|
||||||
wxLogSysError(_("can't flush file descriptor %d"), m_fd);
|
wxLogSysError(_("can't flush file descriptor %d"), m_fd);
|
||||||
|
Loading…
Reference in New Issue
Block a user