X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f49ad976f42dea6430eefb6e70479afd44295909..a1584ea1421fcf6cb3809ebc48c2fa3b38c88379:/include/wx/filefn.h?ds=sidebyside diff --git a/include/wx/filefn.h b/include/wx/filefn.h index 248bee7fcf..8bb24e01e7 100644 --- a/include/wx/filefn.h +++ b/include/wx/filefn.h @@ -235,10 +235,12 @@ enum wxFileKind #endif // wxHAS_HUGE_FILES/!wxHAS_HUGE_FILES #ifndef __WATCOMC__ - // NB: this one is not POSIX and always has the underscore - #define wxFsync _commit + #if !defined(__BORLANDC__) || (__BORLANDC__ > 0x540) + // NB: this one is not POSIX and always has the underscore + #define wxFsync _commit - #define HAVE_FSYNC + #define HAVE_FSYNC + #endif // BORLANDC #endif #define wxEof wxPOSIX_IDENT(eof) @@ -279,14 +281,26 @@ enum wxFileKind #define wxStat wxMSLU__wstat #endif #else // !wxUSE_UNICODE_MSLU - #define wxOpen _wopen - #define wxAccess _waccess - #define wxMkDir _wmkdir - #define wxRmDir _wrmdir - #ifdef wxHAS_HUGE_FILES - #define wxStat _wstati64 + #ifdef __BORLANDC__ + #define wxOpen _wopen + #define wxAccess _waccess + #define wxMkDir _mkdir + #define wxRmDir _rmdir + #ifdef wxHAS_HUGE_FILES + #define wxStat _wstati64 + #else + #define wxStat _wstat + #endif #else - #define wxStat _wstat + #define wxOpen _wopen + #define wxAccess _waccess + #define wxMkDir _wmkdir + #define wxRmDir _wrmdir + #ifdef wxHAS_HUGE_FILES + #define wxStat _wstati64 + #else + #define wxStat _wstat + #endif #endif #endif // wxUSE_UNICODE_MSLU/!wxUSE_UNICODE_MSLU #else // !wxUSE_UNICODE