From 7af330a71cf586e8d8a10a6f210a56ff940b9036 Mon Sep 17 00:00:00 2001 From: "David E. O'Brien" Date: Fri, 25 Apr 2003 21:17:31 +0000 Subject: Enable ISO-C99 compatibility -- among other things, this tells libstdc++ not to blindly undef isnan() and other functions that became macros in C99. Enable use of newly grown C99 functions: strtof(), strtold(), wcstof() Submitted by: das --- gnu/lib/libstdc++/c++config.h | 10 +++++----- gnu/lib/libstdc++/config.h | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'gnu/lib/libstdc++') diff --git a/gnu/lib/libstdc++/c++config.h b/gnu/lib/libstdc++/c++config.h index 544ce922f26e..58bcb2457541 100644 --- a/gnu/lib/libstdc++/c++config.h +++ b/gnu/lib/libstdc++/c++config.h @@ -101,7 +101,7 @@ libstdc++-v3/include/bits/c++config before full recompilation of the library. #define _GLIBCPP_USE_LONG_LONG 1 // Define if C99 features such as lldiv_t, llabs, lldiv should be exposed. -/* #undef _GLIBCPP_USE_C99 */ +#define _GLIBCPP_USE_C99 1 // Define if code specialized for wchar_t should be used. /* #undef _GLIBCPP_USE_WCHAR_T */ @@ -649,10 +649,10 @@ libstdc++-v3/include/bits/c++config before full recompilation of the library. /* #undef _GLIBCPP_HAVE_SQRTL */ /* Define if you have the strtof function. */ -/* #undef _GLIBCPP_HAVE_STRTOF */ +#define _GLIBCPP_HAVE_STRTOF 1 /* Define if you have the strtold function. */ -/* #undef _GLIBCPP_HAVE_STRTOLD */ +#define _GLIBCPP_HAVE_STRTOLD 1 /* Define if you have the swprintf function. */ #define _GLIBCPP_HAVE_SWPRINTF 1 @@ -748,7 +748,7 @@ libstdc++-v3/include/bits/c++config before full recompilation of the library. #define _GLIBCPP_HAVE_WCSTOD 1 /* Define if you have the wcstof function. */ -/* #undef _GLIBCPP_HAVE_WCSTOF */ +#define _GLIBCPP_HAVE_WCSTOF 1 /* Define if you have the wcstok function. */ #define _GLIBCPP_HAVE_WCSTOK 1 @@ -832,7 +832,7 @@ libstdc++-v3/include/bits/c++config before full recompilation of the library. #define _GLIBCPP_HAVE_SYS_RESOURCE_H 1 /* Define if you have the header file. */ -/* #undef _GLIBCPP_HAVE_SYS_STAT_H */ +#define _GLIBCPP_HAVE_SYS_STAT_H 1 /* Define if you have the header file. */ #define _GLIBCPP_HAVE_SYS_TYPES_H 1 diff --git a/gnu/lib/libstdc++/config.h b/gnu/lib/libstdc++/config.h index cce0516887e6..7cf13d10a6c2 100644 --- a/gnu/lib/libstdc++/config.h +++ b/gnu/lib/libstdc++/config.h @@ -13,7 +13,7 @@ #define _GLIBCPP_USE_LONG_LONG 1 // Define if C99 features such as lldiv_t, llabs, lldiv should be exposed. -/* #undef _GLIBCPP_USE_C99 */ +#define _GLIBCPP_USE_C99 1 // Define if code specialized for wchar_t should be used. /* #undef _GLIBCPP_USE_WCHAR_T */ @@ -561,10 +561,10 @@ /* #undef HAVE_SQRTL */ /* Define if you have the strtof function. */ -/* #undef HAVE_STRTOF */ +#define HAVE_STRTOF 1 /* Define if you have the strtold function. */ -/* #undef HAVE_STRTOLD */ +#define HAVE_STRTOLD 1 /* Define if you have the swprintf function. */ #define HAVE_SWPRINTF 1 @@ -660,7 +660,7 @@ #define HAVE_WCSTOD 1 /* Define if you have the wcstof function. */ -/* #undef HAVE_WCSTOF */ +#define HAVE_WCSTOF 1 /* Define if you have the wcstok function. */ #define HAVE_WCSTOK 1 -- cgit v1.3