Add WXFILE_LARGEFILE/wxFFILE_LARGEFILE to indicate whether large files are
supported by wxFile and wxFFile. Add wxO_BINARY. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42275 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -309,6 +309,15 @@ enum wxFileKind
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if wxHAS_HUGE_FILES
|
||||||
|
// wxFile is present and supports large files. Currently wxFFile
|
||||||
|
// doesn't have large file support with any Windows compiler (even
|
||||||
|
// Win64 ones).
|
||||||
|
#if wxUSE_FILE
|
||||||
|
#define WXFILE_LARGEFILE 1
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
// It's a private define, undefine it so nobody gets tempted to use it
|
// It's a private define, undefine it so nobody gets tempted to use it
|
||||||
#undef wxHAS_HUGE_FILES
|
#undef wxHAS_HUGE_FILES
|
||||||
#else // Unix platforms using configure
|
#else // Unix platforms using configure
|
||||||
@@ -317,6 +326,14 @@ enum wxFileKind
|
|||||||
#define wxFileOffsetFmtSpec wxLongLongFmtSpec
|
#define wxFileOffsetFmtSpec wxLongLongFmtSpec
|
||||||
wxCOMPILE_TIME_ASSERT( sizeof(off_t) == sizeof(wxLongLong_t),
|
wxCOMPILE_TIME_ASSERT( sizeof(off_t) == sizeof(wxLongLong_t),
|
||||||
BadFileSizeType );
|
BadFileSizeType );
|
||||||
|
// wxFile is present and supports large files
|
||||||
|
#ifdef wxUSE_FILE
|
||||||
|
#define WXFILE_LARGEFILE
|
||||||
|
#endif
|
||||||
|
// wxFFile is present and supports large files
|
||||||
|
#if SIZEOF_LONG == 8 || defined HAVE_FSEEKO
|
||||||
|
#define WXFFILE_LARGEFILE
|
||||||
|
#endif
|
||||||
#else
|
#else
|
||||||
#define wxFileOffsetFmtSpec _T("")
|
#define wxFileOffsetFmtSpec _T("")
|
||||||
#endif
|
#endif
|
||||||
@@ -355,6 +372,12 @@ enum wxFileKind
|
|||||||
#define wxHAVE_NATIVE_LSTAT
|
#define wxHAVE_NATIVE_LSTAT
|
||||||
#endif // platforms
|
#endif // platforms
|
||||||
|
|
||||||
|
#ifdef O_BINARY
|
||||||
|
#define wxO_BINARY O_BINARY
|
||||||
|
#else
|
||||||
|
#define wxO_BINARY 0
|
||||||
|
#endif
|
||||||
|
|
||||||
// if the platform doesn't have symlinks, define wxLstat to be the same as
|
// if the platform doesn't have symlinks, define wxLstat to be the same as
|
||||||
// wxStat to avoid #ifdefs in the code using it
|
// wxStat to avoid #ifdefs in the code using it
|
||||||
#ifndef wxHAVE_NATIVE_LSTAT
|
#ifndef wxHAVE_NATIVE_LSTAT
|
||||||
|
Reference in New Issue
Block a user