X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f68c6b523c1117c90c1cf690745c807bc024789d..207e624382313a5081d4af16dc76778d6cbb03a4:/src/common/wfstream.cpp diff --git a/src/common/wfstream.cpp b/src/common/wfstream.cpp index 0a115182aa..a6b287af0c 100644 --- a/src/common/wfstream.cpp +++ b/src/common/wfstream.cpp @@ -6,10 +6,10 @@ // Created: 11/07/98 // RCS-ID: $Id$ // Copyright: (c) Guilhem Lavaux -// Licence: wxWindows license +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "wfstream.h" #endif @@ -251,7 +251,7 @@ size_t wxFFileInputStream::OnSysRead(void *buffer, size_t size) off_t wxFFileInputStream::OnSysSeek(off_t pos, wxSeekMode mode) { - return ( m_file->Seek(pos, mode) ? pos : wxInvalidOffset ); + return ( m_file->Seek(pos, mode) ? m_file->Tell() : wxInvalidOffset ); } off_t wxFFileInputStream::OnSysTell() const @@ -324,7 +324,7 @@ off_t wxFFileOutputStream::OnSysTell() const off_t wxFFileOutputStream::OnSysSeek(off_t pos, wxSeekMode mode) { - return ( m_file->Seek(pos, mode) ? pos : wxInvalidOffset ); + return ( m_file->Seek(pos, mode) ? m_file->Tell() : wxInvalidOffset ); } void wxFFileOutputStream::Sync()