From 6b40a566108a9290448fd4bdec69e6184cfed0b6 Mon Sep 17 00:00:00 2001 From: "John W. Eaton" Date: Fri, 8 Jan 2010 10:11:07 +0100 Subject: [PATCH] glob: Fix C++ compilation. (cherry picked from commit 0906b5f3d776d1a91b4c1f2c244cb01b2c6aabcd) --- ChangeLog | 6 ++++++ lib/glob.in.h | 9 +++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 18ca2b110..bd5565b6f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2010-01-07 John W. Eaton (tiny change) + + glob: Fix C++ compilation. + * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for + C++. + 2010-01-07 Bruno Haible Fix indentation of wctype.in.h, broken since 2007-01-06. diff --git a/lib/glob.in.h b/lib/glob.in.h index 562f1c52d..8f32a7929 100644 --- a/lib/glob.in.h +++ b/lib/glob.in.h @@ -33,8 +33,13 @@ #include #ifndef __BEGIN_DECLS -# define __BEGIN_DECLS -# define __END_DECLS +# ifdef __cplusplus +# define __BEGIN_DECLS extern "C" { +# define __END_DECLS } +# else +# define __BEGIN_DECLS +# define __END_DECLS +# endif #endif #ifndef __THROW # define __THROW -- 2.11.0