aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2009-09-18 00:53:28 +0100
committerJoseph Myers <jsm28@gcc.gnu.org>2009-09-18 00:53:28 +0100
commite10822c2dcdd739febee75d530cac3b3ff0d29c3 (patch)
tree29bd24856262ee6e6ffb220ee016fe34f1c9c1ff
parent66be89f022efde50e624af8f67c67b3e4875df5c (diff)
downloadgcc-e10822c2dcdd739febee75d530cac3b3ff0d29c3.zip
gcc-e10822c2dcdd739febee75d530cac3b3ff0d29c3.tar.gz
gcc-e10822c2dcdd739febee75d530cac3b3ff0d29c3.tar.bz2
vstring.h (to_wstring(long long), [...]): Disable for _GLIBCXX_HAVE_BROKEN_VSWPRINTF.
* include/ext/vstring.h (to_wstring(long long), to_wstring(unsigned long long), to_wstring(long double)): Disable for _GLIBCXX_HAVE_BROKEN_VSWPRINTF. From-SVN: r151824
-rw-r--r--libstdc++-v3/ChangeLog6
-rw-r--r--libstdc++-v3/include/ext/vstring.h2
2 files changed, 8 insertions, 0 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 37de63f..e5196bd 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,9 @@
+2009-09-17 Joseph Myers <joseph@codesourcery.com>
+
+ * include/ext/vstring.h (to_wstring(long long),
+ to_wstring(unsigned long long), to_wstring(long double)): Disable
+ for _GLIBCXX_HAVE_BROKEN_VSWPRINTF.
+
2009-09-17 Johannes Singler <singler@ira.uka.de>
* include/parallel/algobase.h: Replace tabs by spaces;
diff --git a/libstdc++-v3/include/ext/vstring.h b/libstdc++-v3/include/ext/vstring.h
index cfce575..61e6ae4 100644
--- a/libstdc++-v3/include/ext/vstring.h
+++ b/libstdc++-v3/include/ext/vstring.h
@@ -2523,6 +2523,7 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
stold(const __wvstring& __str, std::size_t* __idx = 0)
{ return __gnu_cxx::__stoa(&std::wcstold, "stold", __str.c_str(), __idx); }
+#ifndef _GLIBCXX_HAVE_BROKEN_VSWPRINTF
inline __wvstring
to_wstring(long long __val)
{ return __gnu_cxx::__to_xstring<__wvstring>(&std::vswprintf,
@@ -2543,6 +2544,7 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
L"%Lf", __val);
}
#endif
+#endif
_GLIBCXX_END_NAMESPACE