From 6e3df59596318df57fc04d49a447d0a64f7c1769 Mon Sep 17 00:00:00 2001 From: Nolan Clark Date: Wed, 8 Apr 2015 18:17:45 -0500 Subject: [PATCH] Further C++ compatibility changes --- src/xml.c | 2 +- src/xml.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/xml.c b/src/xml.c index 0bd96b6..1e5c310 100644 --- a/src/xml.c +++ b/src/xml.c @@ -729,7 +729,7 @@ struct xml_document* xml_open_document(FILE* source) { /** * [PUBLIC API] */ -void xml_document_free(struct xml_document* document, _Bool free_buffer) { +void xml_document_free(struct xml_document* document, bool free_buffer) { xml_node_free(document->root); if (free_buffer) { diff --git a/src/xml.h b/src/xml.h index eafd801..2559a63 100644 --- a/src/xml.h +++ b/src/xml.h @@ -29,6 +29,7 @@ */ #include #include +#include #ifdef __cplusplus extern "C" { @@ -86,7 +87,7 @@ struct xml_document* xml_open_document(FILE* source); * @param free_buffer iff true the internal buffer supplied via xml_parse_buffer * will be freed with the `free` system call */ -void xml_document_free(struct xml_document* document, _Bool free_buffer); +void xml_document_free(struct xml_document* document, bool free_buffer); /**