summaryrefslogtreecommitdiff
path: root/printbuf.h
diff options
context:
space:
mode:
Diffstat (limited to 'printbuf.h')
-rw-r--r--printbuf.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/printbuf.h b/printbuf.h
index 95f7a24..20c81cb 100644
--- a/printbuf.h
+++ b/printbuf.h
@@ -12,6 +12,10 @@
#ifndef _printbuf_h_
#define _printbuf_h_
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#undef PRINTBUF_DEBUG
struct printbuf {
@@ -35,4 +39,8 @@ printbuf_reset(struct printbuf *p);
extern void
printbuf_free(struct printbuf *p);
+#ifdef __cplusplus
+}
+#endif
+
#endif