From 858eff28605bcc82d5ddeebfcdc325c7b1870059 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Thu, 6 Nov 2008 09:19:37 +0100 Subject: [PATCH] Avoid link errors in C++ programs. --- ChangeLog | 5 +++++ lib/sys_stat.in.h | 12 ++++++++++++ 2 files changed, 17 insertions(+) diff --git a/ChangeLog b/ChangeLog index ead605c99..cec942185 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-11-06 Alexander V. Lukyanov + Bruno Haible + + * lib/sys_stat.in.h: Enclose function definitions in extern "C". + 2008-10-12 Giuseppe Scrivano * build-aux/pmccabe2html: Added support for C++ source files. diff --git a/lib/sys_stat.in.h b/lib/sys_stat.in.h index 234b527c4..a5268339f 100644 --- a/lib/sys_stat.in.h +++ b/lib/sys_stat.in.h @@ -275,6 +275,12 @@ # 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 -- 2.11.0