X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b713f8919c649822292f04bb7095291585d96550..7198c3368055d88249a338eb33b21f051f674806:/src/common/extended.c?ds=sidebyside diff --git a/src/common/extended.c b/src/common/extended.c index 9e2b55f9d9..2b6f4eb3aa 100644 --- a/src/common/extended.c +++ b/src/common/extended.c @@ -1,5 +1,5 @@ /***************************************************************************** -** Name: extended.c +** Name: src/common/extended.c ** Purpose: IEEE Extended<->Double routines to save floats to file ** Maintainer: Ryan Norton ** Modified by: @@ -8,6 +8,12 @@ *****************************************************************************/ +#if defined(_WIN32_WCE) + /* eVC cause warnings in its own headers: stdlib.h and winnt.h */ + #pragma warning (disable:4115) + #pragma warning (disable:4214) +#endif + #include #include #include @@ -15,6 +21,11 @@ #include #include "wx/defs.h" +#if defined(_WIN32_WCE) + #pragma warning (default:4115) + #pragma warning (default:4214) +#endif + #if wxUSE_APPLE_IEEE #include "wx/math.h" @@ -94,7 +105,7 @@ * and a 64-bit mantissa, with no hidden bit. ****************************************************************/ -wxFloat64 ConvertFromIeeeExtended(wxInt8* bytes) +WXDLLIMPEXP_BASE wxFloat64 wxConvertFromIeeeExtended(const wxInt8 *bytes) { wxFloat64 f; wxInt32 expon; @@ -134,7 +145,7 @@ wxFloat64 ConvertFromIeeeExtended(wxInt8* bytes) /****************************************************************/ -void ConvertToIeeeExtended(wxFloat64 num, wxInt8 *bytes) +WXDLLIMPEXP_BASE void wxConvertToIeeeExtended(wxFloat64 num, wxInt8 *bytes) { wxInt32 sign; wxInt32 expon; @@ -180,6 +191,16 @@ void ConvertToIeeeExtended(wxFloat64 num, wxInt8 *bytes) bytes[9] = loMant; } +#if WXWIN_COMPATIBILITY_2_8 +WXDLLIMPEXP_BASE wxFloat64 ConvertFromIeeeExtended(const wxInt8 *bytes) +{ + return wxConvertFromIeeeExtended(bytes); +} +WXDLLIMPEXP_BASE void ConvertToIeeeExtended(wxFloat64 num, wxInt8 *bytes) +{ + wxConvertToIeeeExtended(num, bytes); +} +#endif // WXWIN_COMPATIBILITY_2_8 #endif /* wxUSE_APPLE_IEEE */