From 19f2f429543482797a238618a51be114d6f11483 Mon Sep 17 00:00:00 2001 From: Simon Josefsson Date: Fri, 28 Nov 2008 15:33:48 +0100 Subject: [PATCH] sys_time: Add extern "C" block for C++. --- ChangeLog | 6 ++++++ lib/sys_time.in.h | 8 ++++++++ 2 files changed, 14 insertions(+) diff --git a/ChangeLog b/ChangeLog index daa90b2d9..583e4cb25 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-11-28 Simon Josefsson + + * lib/sys_time.in.h: Add extern "C" block for C++. Suggested by + Brian Dessent . Reported by Sam Steingold + . + 2008-11-20 Bruno Haible Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next. diff --git a/lib/sys_time.in.h b/lib/sys_time.in.h index 439d3bb23..d9fb361b8 100644 --- a/lib/sys_time.in.h +++ b/lib/sys_time.in.h @@ -39,6 +39,10 @@ # include # endif +#ifdef __cplusplus +extern "C" { +#endif + # if ! @HAVE_STRUCT_TIMEVAL@ struct timeval { @@ -53,4 +57,8 @@ struct timeval int gettimeofday (struct timeval *restrict, void *restrict); # endif +#ifdef __cplusplus +} +#endif + #endif /* _GL_SYS_TIME_H */ -- 2.11.0