From 06728e052e6522623d9b38a264cf488e75bb5e0c Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Sun, 22 Aug 2010 10:20:42 -0400 Subject: [PATCH] fts: allow compilation with C++ * lib/fts_.h: Specify extern "C" linkage with C++. --- ChangeLog | 5 +++++ lib/fts_.h | 9 +++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index b540fd196..133734734 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-08-22 Giuseppe Scrivano + + fts: allow compilation with C++ + * lib/fts_.h: Specify extern "C" linkage with C++. + 2010-08-22 Ralf Wildenhues Fix gnulib-tool sed script de-commentation for AIX sed. diff --git a/lib/fts_.h b/lib/fts_.h index 75324d42d..1d532b474 100644 --- a/lib/fts_.h +++ b/lib/fts_.h @@ -55,9 +55,14 @@ # undef __THROW # define __THROW # undef __BEGIN_DECLS -# define __BEGIN_DECLS # undef __END_DECLS -# define __END_DECLS +# ifdef __cplusplus +# define __BEGIN_DECLS extern "C" { +# define __END_DECLS } +# else +# define __BEGIN_DECLS +# define __END_DECLS +# endif # endif # include -- 2.11.0