summaryrefslogtreecommitdiff
path: root/libstdc++-v3/acconfig.h
diff options
context:
space:
mode:
authorbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>2001-04-20 08:59:25 +0000
committerbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>2001-04-20 08:59:25 +0000
commit08078d479d75da325e154dc46441ac79949a35c2 (patch)
treef895b431b6a7bf322998be355dddd14b09763a4b /libstdc++-v3/acconfig.h
parenta3ad289ca1bfeaa87fe51b73353bf5e385a50b34 (diff)
downloadgcc-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/acconfig.h')
-rw-r--r--libstdc++-v3/acconfig.h21
1 files changed, 15 insertions, 6 deletions
diff --git a/libstdc++-v3/acconfig.h b/libstdc++-v3/acconfig.h
index 29ffd5e1125..3c79c8c92e5 100644
--- a/libstdc++-v3/acconfig.h
+++ b/libstdc++-v3/acconfig.h
@@ -12,6 +12,9 @@
// 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 'long double'.
#undef _GLIBCPP_USE_LONG_DOUBLE
@@ -30,16 +33,13 @@
// Define if you have the copysignf function.
#undef _GLIBCPP_HAVE_COPYSIGNF
-// 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
@@ -99,6 +99,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