X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f68c6b523c1117c90c1cf690745c807bc024789d..aa99e0cd2242db04fe1f9bb7d91aea545def2422:/src/common/wfstream.cpp diff --git a/src/common/wfstream.cpp b/src/common/wfstream.cpp index 0a115182aa..296f205b2e 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,13 @@ 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 ); +#ifdef __VMS +#pragma message disable intsignchange +#endif + return ( m_file->Seek(pos, mode) ? m_file->Tell() : wxInvalidOffset ); +#ifdef __VMS +#pragma message enable intsignchange +#endif } off_t wxFFileInputStream::OnSysTell() const @@ -324,7 +330,13 @@ off_t wxFFileOutputStream::OnSysTell() const off_t wxFFileOutputStream::OnSysSeek(off_t pos, wxSeekMode mode) { - return ( m_file->Seek(pos, mode) ? pos : wxInvalidOffset ); +#ifdef __VMS +#pragma message disable intsignchange +#endif + return ( m_file->Seek(pos, mode) ? m_file->Tell() : wxInvalidOffset ); +#ifdef __VMS +#pragma message enable intsignchange +#endif } void wxFFileOutputStream::Sync()