c_locale.cc (__convert_to_v): Use _GLIBCXX_HAVE_STRTOF instead _GLIBCXX_USE_C99 to...
authorRoger Sayle <roger@eyesopen.com>
Mon, 4 Oct 2004 00:19:57 +0000 (00:19 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Mon, 4 Oct 2004 00:19:57 +0000 (00:19 +0000)
* 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

libstdc++-v3/ChangeLog
libstdc++-v3/config/locale/generic/c_locale.cc

index bbf654d0f0082c08dccbd7a163fe597e6e21b20e..290b98407ffd69c7bc016a646f89c9ae9a36290b 100644 (file)
@@ -1,3 +1,10 @@
+2004-10-03  Roger Sayle  <roger@eyesopen.com>
+
+       * 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.
+
 2004-10-03  Paolo Carlini  <pcarlini@suse.de>
 
        * include/bits/stl_list.h: Trivial formatting fixes.
index e183a969c2274b084e7806cf0fe68514de5c7606..4a940ee8e5bf2f5f6747a8c0b2c23339b698dd63 100644 (file)
@@ -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);