From: Bruno Haible Date: Thu, 6 Nov 2008 08:19:37 +0000 (+0100) Subject: Avoid link errors in C++ programs. X-Git-Tag: v0.1~6716 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=858eff28605bcc82d5ddeebfcdc325c7b1870059;p=gnulib.git Avoid link errors in C++ programs. --- 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