From: Karsten Ballüder Date: Tue, 7 Jul 1998 10:43:26 +0000 (+0000) Subject: Fixed broken Ieee extension for configure --without-apple_ieee X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/0e338ff9a33153e00f3eca59d302cc29c7dc0639?ds=sidebyside Fixed broken Ieee extension for configure --without-apple_ieee git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@181 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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); }