diff options
author | Roger Sayle <roger@eyesopen.com> | 2004-10-04 00:19:57 +0000 |
---|---|---|
committer | Roger Sayle <sayle@gcc.gnu.org> | 2004-10-04 00:19:57 +0000 |
commit | e6fecd0132e22dbd73c08e0317b9d01a4b62cd3d (patch) | |
tree | 4268e702abc35340ac50b901ab4038f8d60fa4c5 /libstdc++-v3/config/locale | |
parent | 66cea67583bec0e5c2df618572731f4645af8b92 (diff) | |
download | gcc-e6fecd0132e22dbd73c08e0317b9d01a4b62cd3d.zip gcc-e6fecd0132e22dbd73c08e0317b9d01a4b62cd3d.tar.gz gcc-e6fecd0132e22dbd73c08e0317b9d01a4b62cd3d.tar.bz2 |
c_locale.cc (__convert_to_v): Use _GLIBCXX_HAVE_STRTOF instead _GLIBCXX_USE_C99 to check for strtof.
* config/locale/generic/c_locale.cc (__convert_to_v): Use
_GLIBCXX_HAVE_STRTOF instead _GLIBCXX_USE_C99 to check for strtof.
Likewise, use _GLIBCXX_HAVE_STRTOLD instead of _GLIBCXX_USE_C99
to check for presence of strtold.
From-SVN: r88472
Diffstat (limited to 'libstdc++-v3/config/locale')
-rw-r--r-- | libstdc++-v3/config/locale/generic/c_locale.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libstdc++-v3/config/locale/generic/c_locale.cc b/libstdc++-v3/config/locale/generic/c_locale.cc index e183a96..4a940ee 100644 --- a/libstdc++-v3/config/locale/generic/c_locale.cc +++ b/libstdc++-v3/config/locale/generic/c_locale.cc @@ -57,7 +57,7 @@ namespace std setlocale(LC_ALL, "C"); char* __sanity; errno = 0; -#if defined(_GLIBCXX_USE_C99) +#if defined(_GLIBCXX_HAVE_STRTOF) float __f = strtof(__s, &__sanity); #else double __d = strtod(__s, &__sanity); @@ -117,7 +117,7 @@ namespace std // Assumes __s formatted for "C" locale. char* __old = strdup(setlocale(LC_ALL, NULL)); setlocale(LC_ALL, "C"); -#if defined(_GLIBCXX_USE_C99) +#if defined(_GLIBCXX_HAVE_STRTOLD) char* __sanity; errno = 0; long double __ld = strtold(__s, &__sanity); |