sys_time: Add extern "C" block for C++.
authorSimon Josefsson <simon@josefsson.org>
Fri, 28 Nov 2008 14:33:48 +0000 (15:33 +0100)
committerSimon Josefsson <simon@josefsson.org>
Fri, 28 Nov 2008 14:33:48 +0000 (15:33 +0100)
ChangeLog
lib/sys_time.in.h

index daa90b2..583e4cb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-11-28  Simon Josefsson  <simon@josefsson.org>
+
+       * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
+       Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
+       <sds@gnu.org>.
+
 2008-11-20  Bruno Haible  <bruno@clisp.org>
 
        Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
index 439d3bb..d9fb361 100644 (file)
 #  include <time.h>
 # 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 */