X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/55d99c7a77789ff4904bf96eddca3715eb5af9b9..7fa4dc1cfcc55b0fe425a3ebe5e992ff8255481b:/src/common/wfstream.cpp?ds=inline diff --git a/src/common/wfstream.cpp b/src/common/wfstream.cpp index da1651e2a5..296f205b2e 100644 --- a/src/common/wfstream.cpp +++ b/src/common/wfstream.cpp @@ -9,7 +9,7 @@ // 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()