fts: allow compilation with C++
authorGiuseppe Scrivano <gscrivano@gnu.org>
Sun, 22 Aug 2010 14:20:42 +0000 (10:20 -0400)
committerJim Meyering <meyering@redhat.com>
Sun, 22 Aug 2010 14:20:42 +0000 (10:20 -0400)
* lib/fts_.h: Specify extern "C" linkage with C++.

ChangeLog
lib/fts_.h

index b540fd196f30270f197db87a6cdc830043b176df..1337347344bc6a0bcac09078205534fb3e165b12 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
+
+       fts: allow compilation with C++
+       * lib/fts_.h: Specify extern "C" linkage with C++.
+
 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        Fix gnulib-tool sed script de-commentation for AIX sed.
index 75324d42df15536457d222cbbb537053e66b4343..1d532b474a51a77390e45c02392bb3831a45f1d3 100644 (file)
 #  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 <stddef.h>