X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/de564874d60233c977c93496da1aa406245c37c2..61d07ac77ac5ad7b91812b93b1870d361021314d:/src/common/datstrm.cpp?ds=sidebyside diff --git a/src/common/datstrm.cpp b/src/common/datstrm.cpp index a7bf054ec0..b661775598 100644 --- a/src/common/datstrm.cpp +++ b/src/common/datstrm.cpp @@ -6,10 +6,10 @@ // Created: 28/06/98 // RCS-ID: $Id$ // Copyright: (c) Guilhem Lavaux -// Licence: wxWindows licence +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "datstrm.h" #endif @@ -30,18 +30,14 @@ #if wxUSE_UNICODE wxDataInputStream::wxDataInputStream(wxInputStream& s, wxMBConv& conv) - : m_input(&s), m_be_order(FALSE), m_conv(conv) + : m_input(&s), m_be_order(false), m_conv(conv) #else wxDataInputStream::wxDataInputStream(wxInputStream& s) - : m_input(&s), m_be_order(FALSE) + : m_input(&s), m_be_order(false) #endif { } -wxDataInputStream::~wxDataInputStream() -{ -} - wxUint64 wxDataInputStream::Read64() { wxUint64 i64; @@ -269,18 +265,14 @@ wxDataInputStream& wxDataInputStream::operator>>(float& f) #if wxUSE_UNICODE wxDataOutputStream::wxDataOutputStream(wxOutputStream& s, wxMBConv& conv) - : m_output(&s), m_be_order(FALSE), m_conv(conv) + : m_output(&s), m_be_order(false), m_conv(conv) #else wxDataOutputStream::wxDataOutputStream(wxOutputStream& s) - : m_output(&s), m_be_order(FALSE) + : m_output(&s), m_be_order(false) #endif { } -wxDataOutputStream::~wxDataOutputStream() -{ -} - void wxDataOutputStream::Write64(wxUint64 i) { wxUint64 i64; @@ -343,7 +335,7 @@ void wxDataOutputStream::WriteDouble(double d) #if wxUSE_APPLE_IEEE ConvertToIeeeExtended(d, (unsigned char *)buf); #else -#ifndef __VMS__ +#if !defined(__VMS__) && !defined(__GNUG__) # pragma warning "wxDataOutputStream::WriteDouble() not using IeeeExtended - will not work!" #endif buf[0] = '\0';