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
This commit is contained in:
@@ -247,12 +247,15 @@ enum wxFileKind
|
|||||||
#endif // wxHAS_HUGE_FILES/!wxHAS_HUGE_FILES
|
#endif // wxHAS_HUGE_FILES/!wxHAS_HUGE_FILES
|
||||||
|
|
||||||
#ifndef __WATCOMC__
|
#ifndef __WATCOMC__
|
||||||
#if !defined(__BORLANDC__) || (__BORLANDC__ > 0x540)
|
#if !defined(__BORLANDC__) || (__BORLANDC__ > 0x540)
|
||||||
// NB: this one is not POSIX and always has the underscore
|
// NB: this one is not POSIX and always has the underscore
|
||||||
#define wxFsync _commit
|
#define wxFsync _commit
|
||||||
|
|
||||||
#define HAVE_FSYNC
|
// could be already defined by configure (Cygwin)
|
||||||
#endif // BORLANDC
|
#ifndef HAVE_FSYNC
|
||||||
|
#define HAVE_FSYNC
|
||||||
|
#endif
|
||||||
|
#endif // BORLANDC
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define wxEof wxPOSIX_IDENT(eof)
|
#define wxEof wxPOSIX_IDENT(eof)
|
||||||
|
Reference in New Issue
Block a user