From: Vadim Zeitlin Date: Wed, 13 Feb 2008 22:39:32 +0000 (+0000) Subject: don't define HAVE_FSYNC if it's already defined (as it can happen when using Cygwin... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/1b96afaa92d2f4c2965e7086c5d9a9a0efc0fb94?ds=inline don't define HAVE_FSYNC if it's already defined (as it can happen when using Cygwin with configure) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51770 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/filefn.h b/include/wx/filefn.h index 6ce76ebbc6..a44970676f 100644 --- a/include/wx/filefn.h +++ b/include/wx/filefn.h @@ -247,12 +247,15 @@ enum wxFileKind #endif // wxHAS_HUGE_FILES/!wxHAS_HUGE_FILES #ifndef __WATCOMC__ - #if !defined(__BORLANDC__) || (__BORLANDC__ > 0x540) - // NB: this one is not POSIX and always has the underscore - #define wxFsync _commit - - #define HAVE_FSYNC - #endif // BORLANDC + #if !defined(__BORLANDC__) || (__BORLANDC__ > 0x540) + // NB: this one is not POSIX and always has the underscore + #define wxFsync _commit + + // could be already defined by configure (Cygwin) + #ifndef HAVE_FSYNC + #define HAVE_FSYNC + #endif + #endif // BORLANDC #endif #define wxEof wxPOSIX_IDENT(eof)