Enable the huge files patch to build with mingw-cross.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29389 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Ron Lee
2004-09-26 13:18:46 +00:00
parent 6ea3ac58ea
commit 4004775e5a
13 changed files with 96 additions and 94 deletions

View File

@@ -77,19 +77,19 @@ wxZipInputStream::~wxZipInputStream()
bool wxZipInputStream::Eof() const
{
wxASSERT_MSG( m_Pos <= (off_t)m_Size,
wxASSERT_MSG( m_Pos <= (wxFileOffset)m_Size,
_T("wxZipInputStream: invalid current position") );
return m_Pos >= (off_t)m_Size;
return m_Pos >= (wxFileOffset)m_Size;
}
size_t wxZipInputStream::OnSysRead(void *buffer, size_t bufsize)
{
wxASSERT_MSG( m_Pos <= (off_t)m_Size,
wxASSERT_MSG( m_Pos <= (wxFileOffset)m_Size,
_T("wxZipInputStream: invalid current position") );
if ( m_Pos >= (off_t)m_Size )
if ( m_Pos >= (wxFileOffset)m_Size )
{
m_lasterror = wxSTREAM_EOF;
return 0;
@@ -106,14 +106,14 @@ size_t wxZipInputStream::OnSysRead(void *buffer, size_t bufsize)
off_t wxZipInputStream::OnSysSeek(off_t seek, wxSeekMode mode)
wxFileOffset wxZipInputStream::OnSysSeek(wxFileOffset seek, wxSeekMode mode)
{
// NB: since ZIP files don't natively support seeking, we have to
// implement a brute force workaround -- reading all the data
// between current and the new position (or between beginning of
// the file and new position...)
off_t nextpos;
wxFileOffset nextpos;
switch ( mode )
{