cmark

My personal build of CMark ✏️

Commit
1322f2d836caf1bb2d25b4bd94b9b87c6b27a628
Parent
e1d1593f514a4975e015ed3fdd69f9c1c5c3142d
Author
John MacFarlane <jgm@berkeley.edu>
Date

Add include guards to config.h

Diffstat

1 file changed, 13 insertions, 0 deletions

Status File Name N° Changes Insertions Deletions
Modified src/config.h.in 13 13 0
diff --git 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