From e27782326810413d3a0859b2fefb42feda0e3e0a Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 6 Dec 2012 10:54:01 +0100 Subject: [PATCH] xbps_api.h.in: don't redefine __{BEGIN,END}_DECLS; which is true on BSD. --- include/xbps_api.h.in | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/include/xbps_api.h.in b/include/xbps_api.h.in index f544791c..d4f8fd50 100644 --- a/include/xbps_api.h.in +++ b/include/xbps_api.h.in @@ -36,11 +36,15 @@ #include #ifdef __cplusplus -# define __BEGIN_DECLS extern "C" { -# define __END_DECLS } +# ifndef __BEGIN_DECLS +# define __BEGIN_DECLS extern "C" { +# define __END_DECLS } +# endif #else -# define __BEGIN_DECLS -# define __END_DECLS +# ifndef __BEGIN_DECLS +# define __BEGIN_DECLS +# define __END_DECLS +# endif #endif /**