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  <[EMAIL PROTECTED]>
            Bruno Haible  <[EMAIL PROTECTED]>

        * 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
    • Re: sys_stat Bruno Haible

Reply via email to