X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f4ada568223b79c8a5769cc351c36a8e2ccd7841..58a33cb4e6e2de9d6ea6da16b52e53d840797059:/src/common/datstrm.cpp?ds=sidebyside diff --git a/src/common/datstrm.cpp b/src/common/datstrm.cpp index 8056bdaded..b9ad7564f9 100644 --- a/src/common/datstrm.cpp +++ b/src/common/datstrm.cpp @@ -74,7 +74,7 @@ extern "C" double ConvertFromIeeeExtended(const unsigned char *bytes); double wxDataInputStream::ReadDouble() { -#if USE_APPLE_IEEE +#if wxUSE_APPLE_IEEE char buf[10]; Read(buf, 10); @@ -192,20 +192,11 @@ void wxDataOutputStream::WriteDouble(double d) { char buf[10]; -#if USE_APPLE_IEEE +#if wxUSE_APPLE_IEEE ConvertToIeeeExtended(d, (unsigned char *)buf); #else -# pragma warning "wxDataStream::WriteDouble() not using IeeeExtended - will not work!" +# pragma warning "wxDataOutputStream::WriteDouble() not using IeeeExtended - will not work!" buf[0] = '\0'; #endif Write(buf, 10); } - -// --------------------------------------------------------------------------- -// wxDataStream -// --------------------------------------------------------------------------- - -wxDataStream::wxDataStream(wxStream& stream) - : wxDataInputStream(stream), wxDataOutputStream(stream) -{ -}