From 7735afa212034346f31baa6aee5466de74309541 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 23 Dec 2005 01:55:26 +0000 Subject: * Makeconfig: Define CXXFLAGS. Split out warnings from +gccwarn which are not understood by the C++ compiler. * Makerules: Add rules to build C++ code for test cases. * include/stdlib.h: Protect for inclusion in C++ code. * include/time.h: Likewise. * test-skeleton.c (timeout_handler): Rewrite ts initialization for C++ compatibility. --- include/stdlib.h | 4 ++++ include/time.h | 8 ++++++++ 2 files changed, 12 insertions(+) (limited to 'include') diff --git a/include/stdlib.h b/include/stdlib.h index 49e8757..90b779d 100644 --- a/include/stdlib.h +++ b/include/stdlib.h @@ -10,6 +10,8 @@ /* Now define the internal interfaces. */ #ifndef __Need_M_And_C +__BEGIN_DECLS + extern __typeof (strtol_l) __strtol_l; extern __typeof (strtoul_l) __strtoul_l; extern __typeof (strtoll_l) __strtoll_l; @@ -197,6 +199,8 @@ __strtoull_l (__const char * __restrict __nptr, char **__restrict __endptr, extern void * __default_morecore (ptrdiff_t); libc_hidden_proto (__default_morecore) +__END_DECLS + #undef __Need_M_And_C #endif /* include/stdlib.h */ diff --git a/include/time.h b/include/time.h index c2171ef..adf2dea 100644 --- a/include/time.h +++ b/include/time.h @@ -5,6 +5,8 @@ # include