X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/61f824b8198b6c916adc25f58640a22c9d523bf0..d501d4ef2a58771a495b480ea45fda5e5016211e:/src/common/extended.c diff --git a/src/common/extended.c b/src/common/extended.c index 863e4878a2..6933fb2ac9 100644 --- a/src/common/extended.c +++ b/src/common/extended.c @@ -8,8 +8,8 @@ *****************************************************************************/ -#if defined(_WIN32_WCE) && (_WIN32_WCE < 400) - // eVC3 cause warnings in its own headers: stdlib.h and winnt.h +#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 @@ -21,7 +21,7 @@ #include #include "wx/defs.h" -#if defined(_WIN32_WCE) && (_WIN32_WCE < 400) +#if defined(_WIN32_WCE) #pragma warning (default:4115) #pragma warning (default:4214) #endif @@ -105,7 +105,7 @@ * and a 64-bit mantissa, with no hidden bit. ****************************************************************/ -wxFloat64 ConvertFromIeeeExtended(wxInt8* bytes) +WXDLLEXPORT wxFloat64 wxConvertFromIeeeExtended(const wxInt8 *bytes) { wxFloat64 f; wxInt32 expon; @@ -145,7 +145,7 @@ wxFloat64 ConvertFromIeeeExtended(wxInt8* bytes) /****************************************************************/ -void ConvertToIeeeExtended(wxFloat64 num, wxInt8 *bytes) +WXDLLEXPORT void wxConvertToIeeeExtended(wxFloat64 num, wxInt8 *bytes) { wxInt32 sign; wxInt32 expon; @@ -191,6 +191,16 @@ void ConvertToIeeeExtended(wxFloat64 num, wxInt8 *bytes) bytes[9] = loMant; } +#if WXWIN_COMPATIBILITY_2_8 +WXDLLEXPORT wxFloat64 ConvertFromIeeeExtended(const wxInt8 *bytes) +{ + return wxConvertFromIeeeExtended(bytes); +} +WXDLLEXPORT void ConvertToIeeeExtended(wxFloat64 num, wxInt8 *bytes) +{ + wxConvertToIeeeExtended(num, bytes); +} +#endif // WXWIN_COMPATIBILITY_2_8 #endif /* wxUSE_APPLE_IEEE */