# HG changeset patch # User Simon Josefsson # Date 1227882828 -3600 # Node ID 4a02c5d90eaf2c4ef882ebaf4410e58f9e49c3fd # Parent 40210550f08530c46ee60e3b9cbf71b336516f0d sys_time: Add extern "C" block for C++. diff -r 40210550f085 -r 4a02c5d90eaf ChangeLog --- a/ChangeLog Thu Nov 27 15:53:05 2008 -0800 +++ b/ChangeLog Fri Nov 28 15:33:48 2008 +0100 @@ -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 -r 40210550f085 -r 4a02c5d90eaf lib/sys_time.in.h --- a/lib/sys_time.in.h Thu Nov 27 15:53:05 2008 -0800 +++ b/lib/sys_time.in.h Fri Nov 28 15:33:48 2008 +0100 @@ -39,6 +39,10 @@ # include # endif +#ifdef __cplusplus +extern "C" { +#endif + # if ! @HAVE_STRUCT_TIMEVAL@ struct timeval { @@ -53,4 +57,8 @@ int gettimeofday (struct timeval *restrict, void *restrict); # endif +#ifdef __cplusplus +} +#endif + #endif /* _GL_SYS_TIME_H */