From fc4e8759776161c1d97edbb1f74dc31897b63e22 Mon Sep 17 00:00:00 2001 From: Nolan Clark Date: Wed, 8 Apr 2015 16:38:28 -0500 Subject: [PATCH] Added C++ compatibility --- src/xml.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/xml.h b/src/xml.h index 4bc3064..eafd801 100644 --- a/src/xml.h +++ b/src/xml.h @@ -30,7 +30,9 @@ #include #include - +#ifdef __cplusplus +extern "C" { +#endif /** * Opaque structure holding the parsed xml document @@ -162,9 +164,9 @@ size_t xml_string_length(struct xml_string* string); */ void xml_string_copy(struct xml_string* string, uint8_t* buffer, size_t length); - - - +#ifdef __cplusplus +} +#endif #endif