You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stdcxx.apache.org by fa...@apache.org on 2008/07/04 14:08:52 UTC
svn commit: r674023 - /stdcxx/branches/4.2.x/tests/src/printf.cpp
Author: faridz
Date: Fri Jul 4 05:08:52 2008
New Revision: 674023
URL: http://svn.apache.org/viewvc?rev=674023&view=rev
Log:
2008-07-04 Farid Zaripov <fa...@apache.com>
* tests/src/printf.cpp (_rw_fmtfloating): Use workaround for
MSVC on MinGW too since MinGW uses MSVC's runtime.
Modified:
stdcxx/branches/4.2.x/tests/src/printf.cpp
Modified: stdcxx/branches/4.2.x/tests/src/printf.cpp
URL: http://svn.apache.org/viewvc/stdcxx/branches/4.2.x/tests/src/printf.cpp?rev=674023&r1=674022&r2=674023&view=diff
==============================================================================
--- stdcxx/branches/4.2.x/tests/src/printf.cpp (original)
+++ stdcxx/branches/4.2.x/tests/src/printf.cpp Fri Jul 4 05:08:52 2008
@@ -1490,7 +1490,7 @@
RW_ASSERT (size_t (len) < sizeof buffer);
-#ifdef _MSC_VER
+#if defined (_MSC_VER) || defined (__MINGW32__)
if (5 < len) {
// remove redundant zeros from the exponent (if present)
@@ -1502,7 +1502,7 @@
}
}
-#endif // _MSC_VER
+#endif // _MSC_VER || __MINGW32__
if (-1 < len && 0 == _rw_bufcat (buf, buffer, size_t (len)))