diff options
author | Yorhel <git@yorhel.nl> | 2014-02-26 08:29:14 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2014-02-26 08:29:14 +0100 |
commit | f79b21d00bcf85682f37a923f1ab6ca1b264f2f4 (patch) | |
tree | 2f161c0333a87335955594f6d38ebb905a174da4 | |
parent | 7ff7bbcbeea6815d184c3bf80f4989fa3c75dc0b (diff) |
Add extern "C" stuff for C++
-rw-r--r-- | yxml.h | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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: */ |