summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2016-01-18 11:57:16 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2016-01-18 11:57:16 -0800
commit1322f2d836caf1bb2d25b4bd94b9b87c6b27a628 (patch)
tree70616655d9d32d3bb3f4dcc35b9ab3891d672a8e /src
parente1d1593f514a4975e015ed3fdd69f9c1c5c3142d (diff)
Add include guards to config.h
Diffstat (limited to 'src')
-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