Avoid link errors in C++ programs.
authorBruno Haible <bruno@clisp.org>
Thu, 6 Nov 2008 08:19:37 +0000 (09:19 +0100)
committerBruno Haible <bruno@clisp.org>
Thu, 6 Nov 2008 08:19:37 +0000 (09:19 +0100)
ChangeLog
lib/sys_stat.in.h

index ead605c..cec9421 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
+            Bruno Haible  <bruno@clisp.org>
+
+       * lib/sys_stat.in.h: Enclose function definitions in extern "C".
+
 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
 
        * build-aux/pmccabe2html: Added support for C++ source files.
index 234b527..a526833 100644 (file)
 # define S_IRWXUGO (S_IRWXU | S_IRWXG | S_IRWXO)
 #endif
 
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
 #if @GNULIB_LSTAT@
 # if ! @HAVE_LSTAT@
 /* mingw does not support symlinks, therefore it does not have lstat.  But
@@ -341,6 +347,12 @@ extern int lchmod (const char *filename, mode_t mode);
      lchmod (f, m))
 #endif
 
+
+#ifdef __cplusplus
+}
+#endif
+
+
 #endif /* _GL_SYS_STAT_H */
 #endif /* _GL_SYS_STAT_H */
 #endif