Skip to content

Commit

Permalink
Fixed missing stdio.h include
Browse files Browse the repository at this point in the history
`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.
  • Loading branch information
ooxi committed Jan 19, 2023
1 parent 2e1a10b commit 66caec1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/xml.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 <alloca.h>
#endif
Expand All @@ -34,7 +36,6 @@
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include "xml.h"



Expand Down
3 changes: 2 additions & 1 deletion src/xml.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@
/**
* Includes
*/
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <stdbool.h>

#ifdef __cplusplus
extern "C" {
Expand Down

0 comments on commit 66caec1

Please sign in to comment.