diff --git a/src/common/datstrm.cpp b/src/common/datstrm.cpp index be174c1b48..17f2100ebe 100644 --- a/src/common/datstrm.cpp +++ b/src/common/datstrm.cpp @@ -204,6 +204,11 @@ void wxDataStream::WriteDouble(double d) if (!m_ostream) return; +#if USE_APPLE_IEEE ConvertToIeeeExtended(d, (unsigned char *)buf); +#else +# pragma warning "wxDataStream::WriteDouble() not using IeeeExtended - will not work!" + buf[0] = '\0'; +#endif m_ostream->write(buf, 10); }