X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/94009d33c10edc7e2b641b21061ea67245d874ab..7344726a7a2cad01b8db61a0fea3502e5f904ff6:/include/wx/filefn.h diff --git a/include/wx/filefn.h b/include/wx/filefn.h index 9331963fdd..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,11 +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 long wxFileSize_t; #endif #define wxClose _close @@ -300,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 @@ -325,10 +324,8 @@ enum wxSeekMode #define wxFileOffsetFmtSpec wxLongLongFmtSpec wxCOMPILE_TIME_ASSERT( sizeof(off_t) == sizeof(wxLongLong_t), BadFileSizeType ); - typedef unsigned wxLongLong_t wxFileSize_t; #else #define wxFileOffsetFmtSpec _T("") - typedef unsigned long wxFileSize_t; #endif // functions #define wxClose close @@ -366,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 // ----------------------------------------------------------------------------