Skip to content

Commit 6e3df59

Browse files
Further C++ compatibility changes
1 parent 1061a39 commit 6e3df59

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/xml.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,7 @@ struct xml_document* xml_open_document(FILE* source) {
729729
/**
730730
* [PUBLIC API]
731731
*/
732-
void xml_document_free(struct xml_document* document, _Bool free_buffer) {
732+
void xml_document_free(struct xml_document* document, bool free_buffer) {
733733
xml_node_free(document->root);
734734

735735
if (free_buffer) {

src/xml.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
*/
3030
#include <stdint.h>
3131
#include <string.h>
32+
#include <stdbool.h>
3233

3334
#ifdef __cplusplus
3435
extern "C" {
@@ -86,7 +87,7 @@ struct xml_document* xml_open_document(FILE* source);
8687
* @param free_buffer iff true the internal buffer supplied via xml_parse_buffer
8788
* will be freed with the `free` system call
8889
*/
89-
void xml_document_free(struct xml_document* document, _Bool free_buffer);
90+
void xml_document_free(struct xml_document* document, bool free_buffer);
9091

9192

9293
/**

0 commit comments

Comments
 (0)