From 5f571290db05858133634f3d075030e1b3a3d121 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 1 Sep 2008 21:49:59 -0400 Subject: [PATCH] [configure.in] Add CAIRO_BEGIN/END_DECLS to config.h --- configure.in | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/configure.in b/configure.in index 7ab6d5347..d90d246f9 100644 --- a/configure.in +++ b/configure.in @@ -103,6 +103,16 @@ AX_C_FLOAT_WORDS_BIGENDIAN ;; esac +AH_BOTTOM([ +#ifdef __cplusplus +# define CAIRO_BEGIN_DECLS extern "C" { +# define CAIRO_END_DECLS } +#else +# define CAIRO_BEGIN_DECLS +# define CAIRO_END_DECLS +#endif +]) + dnl =========================================================================== dnl === Local macros dnl ===========================================================================