X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/93e0db9a80d880a15d3a8eb25c3db01f63392038..6181cef53222dc7f04e0e52fc4a2d399709a076e:/include/wx/filefn.h diff --git a/include/wx/filefn.h b/include/wx/filefn.h index 6848bbdeaf..d112029e3b 100644 --- a/include/wx/filefn.h +++ b/include/wx/filefn.h @@ -131,7 +131,6 @@ enum wxSeekMode // Implemented in filefnwce.cpp #if defined( __WXWINCE__) typedef __int64 wxFileOffset; - typedef unsigned __int64 wxFileSize_t; #define wxFileOffsetFmtSpec _("I64") int wxOpen(const wxChar *filename, int oflag, int WXUNUSED(pmode)); int wxAccess(const wxChar *name, int WXUNUSED(how)); @@ -174,7 +173,9 @@ enum wxSeekMode // detect compilers which have support for huge files (currently only // Digital Mars doesn't) + #ifndef __PALMOS__ #include "wx/msw/private.h" + #endif #undef wxHAS_HUGE_FILES #if defined(__MINGW32__) @@ -196,12 +197,9 @@ enum wxSeekMode #if wxHAS_HUGE_FILES typedef wxLongLong_t wxFileOffset; - typedef unsigned wxLongLong_t wxFileSize_t; #define wxFileOffsetFmtSpec wxLongLongFmtSpec #else typedef off_t wxFileOffset; - typedef unsigned off_t wxFileSize_t; - #define wxFileOffsetFmtSpec _("") #endif #define wxClose _close @@ -301,7 +299,7 @@ enum wxSeekMode #endif // constants (unless already defined by the user code) - #if !defined(__BORLANDC__) && !defined(__WATCOMC__) + #if !defined(__BORLANDC__) && !defined(__WATCOMC__) && !defined(__PALMOS__) #ifndef O_RDONLY #define O_RDONLY _O_RDONLY #define O_WRONLY _O_WRONLY @@ -322,9 +320,10 @@ enum wxSeekMode #undef wxHAS_HUGE_FILES #else // Unix platforms using configure typedef off_t wxFileOffset; - typedef unsigned off_t wxFileSize_t; #ifdef _LARGE_FILES #define wxFileOffsetFmtSpec wxLongLongFmtSpec + wxCOMPILE_TIME_ASSERT( sizeof(off_t) == sizeof(wxLongLong_t), + BadFileSizeType ); #else #define wxFileOffsetFmtSpec _T("") #endif @@ -364,9 +363,9 @@ enum wxSeekMode // VisualAge C++ V4.0 cannot have any external linkage const decs // in headers included by more than one primary source // -extern const wxFileSize_t wxInvalidOffset; +extern const int wxInvalidOffset; #else -const wxFileSize_t wxInvalidOffset = (wxFileSize_t)-1; +const int wxInvalidOffset = -1; #endif // ----------------------------------------------------------------------------