Mercurial > hg > octave-lyh > gnulib-hg
changeset 10769:8437634ab1eb
Avoid link errors in C++ programs.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Thu, 06 Nov 2008 09:19:37 +0100 |
parents | 52fb10657c22 |
children | 6f79b0e4356c |
files | ChangeLog lib/sys_stat.in.h |
diffstat | 2 files changed, 17 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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.
--- 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 @@ lchmod (f, m)) #endif + +#ifdef __cplusplus +} +#endif + + #endif /* _GL_SYS_STAT_H */ #endif /* _GL_SYS_STAT_H */ #endif