From 1322f2d836caf1bb2d25b4bd94b9b87c6b27a628 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Mon, 18 Jan 2016 11:57:16 -0800 Subject: Add include guards to config.h --- src/config.h.in | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/config.h.in') diff --git a/src/config.h.in b/src/config.h.in index 197e97e..abf4418 100644 --- a/src/config.h.in +++ b/src/config.h.in @@ -1,3 +1,10 @@ +#ifndef CMARK_CONFIG_H +#define CMARK_CONFIG_H + +#ifdef __cplusplus +extern "C" { +#endif + #cmakedefine HAVE_STDBOOL_H #ifdef HAVE_STDBOOL_H @@ -58,3 +65,9 @@ CMARK_INLINE int c99_snprintf(char *outBuf, size_t size, const char *format, ... } #endif + +#ifdef __cplusplus +} +#endif + +#endif -- cgit v1.2.3