From 0428d2a32584fb022022faea894aa37b5cbb1431 Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Fri, 22 Apr 2011 23:14:22 +0900 Subject: [PATCH] locale: suppress long double --- include/locale | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/include/locale b/include/locale index 9d9a0823..a8ce17d6 100644 --- a/include/locale +++ b/include/locale @@ -1702,11 +1702,17 @@ num_put<_CharT, _OutputIterator>::do_put(iter_type __s, ios_base& __iob, template _OutputIterator num_put<_CharT, _OutputIterator>::do_put(iter_type __s, ios_base& __iob, - char_type __fl, long double __v) const + char_type __fl, long double __lv) const { // Stage 1 - Get number in narrow char char __fmt[8] = {'%', 0}; +#ifdef _WIN32 + const char* __len = ""; + double __v = __lv; +#else const char* __len = "L"; + long double __v = __lv; +#endif bool __specify_precision = this->__format_float(__fmt+1, __len, __iob.flags()); const unsigned __nbuf = 30; char __nar[__nbuf];