OSDN Git Service

* include/ext/vstring.h (to_wstring(long long),
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 17 Sep 2009 23:53:28 +0000 (23:53 +0000)
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 17 Sep 2009 23:53:28 +0000 (23:53 +0000)
to_wstring(unsigned long long), to_wstring(long double)): Disable
for _GLIBCXX_HAVE_BROKEN_VSWPRINTF.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@151824 138bc75d-0d04-0410-961f-82ee72b054a4

libstdc++-v3/ChangeLog
libstdc++-v3/include/ext/vstring.h

index 37de63f..e5196bd 100644 (file)
@@ -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;
index cfce575..61e6ae4 100644 (file)
@@ -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