Add extern "C" stuff for C++
diff --git a/yxml.h b/yxml.h
index cf7cf11..97c4bc8 100644
--- a/yxml.h
+++ b/yxml.h
@@ -120,6 +120,10 @@
 } yxml_t;
 
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 void yxml_init(yxml_t *, void *, size_t);
 
 
@@ -134,6 +138,11 @@
  * 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: */