From: Vadim Zeitlin Date: Wed, 26 Aug 2009 20:44:01 +0000 (+0000) Subject: Use #pragma message and not #pragma warning for MSVC. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/7d58a1bdd0466c5c5adc9d0dcf9ef12fe0349f2e Use #pragma message and not #pragma warning for MSVC. This fixes MSVC compilation with wxUSE_APPLE_IEEE==0. Closes #11141. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61764 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/datstrm.cpp b/src/common/datstrm.cpp index e480fef05e..607c542647 100644 --- a/src/common/datstrm.cpp +++ b/src/common/datstrm.cpp @@ -551,7 +551,11 @@ void wxDataOutputStream::WriteDouble(double d) #else wxUnusedVar(d); #if !defined(__VMS__) && !defined(__GNUG__) +#ifdef _MSC_VER +# pragma message("wxDataOutputStream::WriteDouble() not using IeeeExtended - will not work!") +#else # pragma warning "wxDataOutputStream::WriteDouble() not using IeeeExtended - will not work!" +#endif #endif buf[0] = '\0'; #endif