From bd3cea7d2c49fbc8fd9424ce1c65a780a9ed8154 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 15 Oct 2004 00:23:32 +0000 Subject: [PATCH] fixed wxFileSize_t definition under Unix git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29855 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/filefn.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/wx/filefn.h b/include/wx/filefn.h index 6848bbdeaf..434ea6a4c0 100644 --- a/include/wx/filefn.h +++ b/include/wx/filefn.h @@ -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