summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/config.h.in13
1 files changed, 13 insertions, 0 deletions
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