From: Loren J. Rittle Date: Wed, 6 Feb 2002 23:11:16 +0000 (+0000) Subject: c_locale_generic.cc: Do not trust _GLIBCPP_HAVE_STRTOF or _GLIBCPP_HAVE_STRTOLD as... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ef8259b757c66988d48a383c1b16e1a477a9a3bd;p=gcc.git c_locale_generic.cc: Do not trust _GLIBCPP_HAVE_STRTOF or _GLIBCPP_HAVE_STRTOLD as set by configure. * config/locale/c_locale_generic.cc: Do not trust _GLIBCPP_HAVE_STRTOF or _GLIBCPP_HAVE_STRTOLD as set by configure. From-SVN: r49558 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 2c36b314ba7..fdc204f9da8 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,9 @@ +2002-02-06 Loren Rittle + + * config/locale/c_locale_generic.cc: Do not trust + _GLIBCPP_HAVE_STRTOF or _GLIBCPP_HAVE_STRTOLD as + set by configure. + 2002-02-06 Loren Rittle * acinclude.m4: Add C++ linkage check for strtof. diff --git a/libstdc++-v3/config/locale/c_locale_generic.cc b/libstdc++-v3/config/locale/c_locale_generic.cc index e470f1ab3f8..245b5b23f80 100644 --- a/libstdc++-v3/config/locale/c_locale_generic.cc +++ b/libstdc++-v3/config/locale/c_locale_generic.cc @@ -123,7 +123,7 @@ namespace std const char* __old = setlocale(LC_ALL, "C"); char* __sanity; errno = 0; -#if defined(_GLIBCPP_USE_C99) || defined(_GLIBCPP_HAVE_STRTOF) +#if defined(_GLIBCPP_USE_C99) float __f = strtof(__s, &__sanity); #else double __d = strtod(__s, &__sanity); @@ -179,7 +179,7 @@ namespace std { // Assumes __s formatted for "C" locale. const char* __old = setlocale(LC_ALL, "C"); -#if defined(_GLIBCPP_USE_C99) || defined(_GLIBCPP_HAVE_STRTOLD) +#if defined(_GLIBCPP_USE_C99) char* __sanity; errno = 0; long double __ld = strtold(__s, &__sanity);