Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/lib/librefuse



On Sun Apr 19 2009 at 18:25:29 -0400, Christos Zoulas wrote:
> Module Name:  src
> Committed By: christos
> Date:         Sun Apr 19 22:25:29 UTC 2009
> 
> Modified Files:
>       src/lib/librefuse: fuse_opt.h
> 
> Log Message:
> PR/41250: David H. Gutteridge: librefuse fuse_opt.h header doesn't accommodate
> C++ compilation

Why not _BEGIN/END_DECLS?

> Modified files:
> 
> Index: src/lib/librefuse/fuse_opt.h
> diff -u src/lib/librefuse/fuse_opt.h:1.4 src/lib/librefuse/fuse_opt.h:1.5
> --- src/lib/librefuse/fuse_opt.h:1.4  Wed May 16 21:55:43 2007
> +++ src/lib/librefuse/fuse_opt.h      Sun Apr 19 18:25:29 2009
> @@ -1,4 +1,4 @@
> -/*   $NetBSD: fuse_opt.h,v 1.4 2007/05/17 01:55:43 christos Exp $    */
> +/*   $NetBSD: fuse_opt.h,v 1.5 2009/04/19 22:25:29 christos Exp $    */
>  
>  /*
>   * Copyright (c) 2007 Alistair Crooks.  All rights reserved.
> @@ -31,6 +31,10 @@
>  #ifndef _FUSE_OPT_H_
>  #define _FUSE_OPT_H_
>  
> +#ifdef __cplusplus
> +extern "C" {
> +#endif  
> +
>  enum {
>       FUSE_OPT_KEY_OPT = -1,
>       FUSE_OPT_KEY_NONOPT = -2,
> @@ -59,4 +63,8 @@
>                  const struct fuse_opt *, fuse_opt_proc_t);
>  int fuse_opt_match(const struct fuse_opt *, const char *);
>  
> +#ifdef __cplusplus
> +}
> +#endif 
> +
>  #endif /* _FUSE_OPT_H_ */
> 



Home | Main Index | Thread Index | Old Index