Skip to content

Commit fc4e875

Browse files
Added C++ compatibility
1 parent 052f19e commit fc4e875

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/xml.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@
3030
#include <stdint.h>
3131
#include <string.h>
3232

33-
33+
#ifdef __cplusplus
34+
extern "C" {
35+
#endif
3436

3537
/**
3638
* Opaque structure holding the parsed xml document
@@ -162,9 +164,9 @@ size_t xml_string_length(struct xml_string* string);
162164
*/
163165
void xml_string_copy(struct xml_string* string, uint8_t* buffer, size_t length);
164166

165-
166-
167-
167+
#ifdef __cplusplus
168+
}
169+
#endif
168170

169171
#endif
170172

0 commit comments

Comments
 (0)