fixed wxFileSize_t definition under Unix

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29855 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2004-10-15 00:23:32 +00:00
parent 02aef13c07
commit bd3cea7d2c

View File

@ -322,11 +322,14 @@ 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 );
typedef unsigned wxLongLong_t wxFileSize_t;
#else
#define wxFileOffsetFmtSpec _T("")
typedef unsigned long wxFileSize_t;
#endif
// functions
#define wxClose close