From: Simon Josefsson Date: Fri, 28 Nov 2008 14:33:48 +0000 (+0100) Subject: sys_time: Add extern "C" block for C++. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=19f2f429543482797a238618a51be114d6f11483;p=pspp sys_time: Add extern "C" block for C++. --- diff --git a/ChangeLog b/ChangeLog index daa90b2d9f..583e4cb256 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 439d3bb239..d9fb361b87 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 */