mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-19 01:49:09 +08:00
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
This commit is contained in:
parent
e1e52c7e55
commit
ef8259b757
@ -1,3 +1,9 @@
|
||||
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.
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user