[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: sys_stat
From: |
Bruno Haible |
Subject: |
Re: sys_stat |
Date: |
Thu, 6 Nov 2008 09:21:49 +0100 |
User-agent: |
KMail/1.5.4 |
Hi,
Alexander V. Lukyanov wrote:
> Here is a patch to allow proper linking of rpl_lstat in C++ programs.
Nearly right. Since it's dangerous to have #includes inside
extern "C" blocks, I shrinked the extern "C" block so that it contains only
the function redeclarations:
2008-11-06 Alexander V. Lukyanov <address@hidden>
Bruno Haible <address@hidden>
* lib/sys_stat.in.h: Enclose function definitions in extern "C".
*** lib/sys_stat.in.h.orig 2008-11-06 09:19:01.000000000 +0100
--- lib/sys_stat.in.h 2008-11-06 09:17:07.000000000 +0100
***************
*** 275,280 ****
--- 275,286 ----
# 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,346 ****
--- 347,358 ----
lchmod (f, m))
#endif
+
+ #ifdef __cplusplus
+ }
+ #endif
+
+
#endif /* _GL_SYS_STAT_H */
#endif /* _GL_SYS_STAT_H */
#endif
- sys_stat, Alexander V. Lukyanov, 2008/11/06
- Re: sys_stat,
Bruno Haible <=