ext/redcarpet/buffer.h in redcarpet-2.1.1 vs ext/redcarpet/buffer.h in redcarpet-2.2.0
- old
+ new
@@ -20,10 +20,14 @@
#include <stddef.h>
#include <stdarg.h>
#include <stdint.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#if defined(_MSC_VER)
#define __attribute__(x)
#define inline
#endif
@@ -82,7 +86,11 @@
/* bufslurp: removes a given number of bytes from the head of the array */
void bufslurp(struct buf *, size_t);
/* bufprintf: formatted printing to a buffer */
void bufprintf(struct buf *, const char *, ...) __attribute__ ((format (printf, 2, 3)));
+
+#ifdef __cplusplus
+}
+#endif
#endif