diff options
author | bkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-04-20 08:59:25 +0000 |
---|---|---|
committer | bkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-04-20 08:59:25 +0000 |
commit | 08078d479d75da325e154dc46441ac79949a35c2 (patch) | |
tree | f895b431b6a7bf322998be355dddd14b09763a4b /libstdc++-v3/config.h.in | |
parent | a3ad289ca1bfeaa87fe51b73353bf5e385a50b34 (diff) | |
download | gcc-08078d479d75da325e154dc46441ac79949a35c2.tar.gz |
2001-04-19 Benjamin Kosnik <bkoz@redhat.com>
* acconfig.h (_GLIBCPP_USE_C99): Add.
* config.h.in: Regenerate.
* acinclude.m4 (GLIBCPP_ENABLE_C99): New macro. Test for ISO/IEC
9899: 1999 support.
* aclocal.m4: Regenerate.
* configure.in (GLIBCPP_ENABLE_C99): Use it, on by default.
* configure: Regenerate.
* configure.in (GLIBCPP_ENABLE_LONG_LONG): Set default to yes.
* configure: Regenerate.
* include/c_std/bits/std_cwchar.h: Put wcstold, wcstoll, wcstoull
into c99.
* include/c_std/bits/std_cmath.h: Bring C99 functions into c99
namespace.
* include/c_std/bits/std_cstdlib.h: Same.
* docs/html/configopts.html: Update.
* testsuite/26_numerics/c99_macros.cc: Edit, use cmath instead of
math.h
(test_c99_classify): Add.
* config/os/gnu-linux/bits/os_defines.h (_GNU_SOURCE): Remove.
(_ISOC99_SOURCE): Remove.
* include/bits/stl_algo.h: Use _GLIBCPP_HAVE_DRAND48.
* include/bits/c++config (__STL_ASSERTIONS): Simplify.
* acinclude.m4 (GLIBCPP_CHECK_STDLIB_SUPPORT): Add check for drand48.
* aclocal.m4: Regenerate.
* configure: Regenerate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41451 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/config.h.in')
-rw-r--r-- | libstdc++-v3/config.h.in | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/libstdc++-v3/config.h.in b/libstdc++-v3/config.h.in index a16c1e1148c..51d0e74501b 100644 --- a/libstdc++-v3/config.h.in +++ b/libstdc++-v3/config.h.in @@ -15,22 +15,22 @@ // Include support for 'long long' and 'unsigned long long'. #undef _GLIBCPP_USE_LONG_LONG +// Define if code specialized for wchar_t should be used. +#undef _GLIBCPP_USE_C99 + // Include support for shadow headers, ie --enable-cshadow-headers. #undef _GLIBCPP_USE_SHADOW_HEADERS // Define if code specialized for wchar_t should be used. #undef _GLIBCPP_USE_WCHAR_T -// Define if lldiv_t exists in stdlib.h. -#undef HAVE_LLDIV_T - -// Define if mbstate_t exists in wchar.h. */ +// Define if mbstate_t exists in wchar.h. #undef HAVE_MBSTATE_T -// Define if you have the modff function. */ +// Define if you have the modff function. #undef HAVE_MODFF -// Define if you have the modfl function. */ +// Define if you have the modfl function. #undef HAVE_MODFL // Define if the compiler/host combination has __builtin_abs @@ -303,6 +303,9 @@ /* Define if you have the cosl function. */ #undef HAVE_COSL +/* Define if you have the drand48 function. */ +#undef HAVE_DRAND48 + /* Define if you have the expf function. */ #undef HAVE_EXPF @@ -557,6 +560,15 @@ // underscore, we'll handle those here. Must come after config.h.in. // +#if defined(_GLIBCPP_USE_C99) && defined(__cplusplus) +// Placeholder for declarations in c99 namespace. +namespace std +{ + namespace c99 { } + using namespace c99; +} +#endif + #if defined (HAVE__ISNAN) && ! defined (HAVE_ISNAN) # define HAVE_ISNAN 1 # define isnan _isnan |