diff options
author | Loren J. Rittle <ljrittle@acm.org> | 2002-02-06 23:11:16 +0000 |
---|---|---|
committer | Loren J. Rittle <ljrittle@gcc.gnu.org> | 2002-02-06 23:11:16 +0000 |
commit | ef8259b757c66988d48a383c1b16e1a477a9a3bd (patch) | |
tree | a5d65740e2d2e4d3ed94a5d18c617e32a73a4d65 | |
parent | e1e52c7e550bdbcf9c5a6f47a240d30f088bb236 (diff) | |
download | gcc-ef8259b757c66988d48a383c1b16e1a477a9a3bd.zip gcc-ef8259b757c66988d48a383c1b16e1a477a9a3bd.tar.gz gcc-ef8259b757c66988d48a383c1b16e1a477a9a3bd.tar.bz2 |
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
-rw-r--r-- | libstdc++-v3/ChangeLog | 6 | ||||
-rw-r--r-- | libstdc++-v3/config/locale/c_locale_generic.cc | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 2c36b31..fdc204f 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,11 @@ 2002-02-06 Loren Rittle <ljrittle@acm.org> + * 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 <ljrittle@acm.org> + * acinclude.m4: Add C++ linkage check for strtof. * aclocal.m4: Rebuilt. * config.h.in: Rebuilt. diff --git a/libstdc++-v3/config/locale/c_locale_generic.cc b/libstdc++-v3/config/locale/c_locale_generic.cc index e470f1a..245b5b2 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); |