From 0e338ff9a33153e00f3eca59d302cc29c7dc0639 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Karsten=20Ball=C3=BCder?= Date: Tue, 7 Jul 1998 10:43:26 +0000 Subject: [PATCH] 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 --- src/common/datstrm.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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); } -- 2.50.0