diff --git a/lib/sys_stat.in.h b/lib/sys_stat.in.h index 234b527..50fb524 100644 --- a/lib/sys_stat.in.h +++ b/lib/sys_stat.in.h @@ -41,6 +41,10 @@ #ifndef _GL_SYS_STAT_H #define _GL_SYS_STAT_H +#ifdef __cplusplus +extern "C" { +#endif + /* The definition of GL_LINK_WARNING is copied here. */ /* Before doing "#define mkdir rpl_mkdir" below, we need to include all @@ -341,6 +345,10 @@ 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