summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2014-02-26 08:29:14 +0100
committerYorhel <git@yorhel.nl>2014-02-26 08:29:14 +0100
commitf79b21d00bcf85682f37a923f1ab6ca1b264f2f4 (patch)
tree2f161c0333a87335955594f6d38ebb905a174da4
parent7ff7bbcbeea6815d184c3bf80f4989fa3c75dc0b (diff)
Add extern "C" stuff for C++
-rw-r--r--yxml.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/yxml.h b/yxml.h
index cf7cf11..97c4bc8 100644
--- a/yxml.h
+++ b/yxml.h
@@ -120,6 +120,10 @@ typedef struct {
} yxml_t;
+#ifdef __cplusplus
+extern "C" {
+#endif
+
void yxml_init(yxml_t *, void *, size_t);
@@ -134,6 +138,11 @@ yxml_ret_t yxml_parse(yxml_t *, int);
* ended while in a comment or processing instruction. */
yxml_ret_t yxml_eof(yxml_t *);
+#ifdef __cplusplus
+}
+#endif
+
+
#endif
/* vim: set noet sw=4 ts=4: */