From 66caec13c9208a5b83250fd2fe5490ce03ef18bc Mon Sep 17 00:00:00 2001 From: ooxi Date: Thu, 19 Jan 2023 19:05:33 +0100 Subject: [PATCH] Fixed missing `stdio.h` include `xml.h` required `stdio.h` to be included first, which is unfortunate. Switch `xml.c` include order to include `xml.h` first in order to catch such mistakes in the future. --- src/xml.c | 3 ++- src/xml.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/xml.c b/src/xml.c index f149005..0b57396 100644 --- a/src/xml.c +++ b/src/xml.c @@ -20,6 +20,8 @@ * * 3. This notice may not be removed or altered from any source distribution. */ +#include "xml.h" + #ifdef XML_PARSER_VERBOSE #include #endif @@ -34,7 +36,6 @@ #include #include #include -#include "xml.h" diff --git a/src/xml.h b/src/xml.h index 6217a12..688a4be 100644 --- a/src/xml.h +++ b/src/xml.h @@ -27,9 +27,10 @@ /** * Includes */ +#include #include +#include #include -#include #ifdef __cplusplus extern "C" {