Browse Source

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.
master
ooxi 1 year ago
parent
commit
66caec13c9
2 changed files with 4 additions and 2 deletions
  1. +2
    -1
      src/xml.c
  2. +2
    -1
      src/xml.h

+ 2
- 1
src/xml.c View File

@@ -20,6 +20,8 @@
* *
* 3. This notice may not be removed or altered from any source distribution. * 3. This notice may not be removed or altered from any source distribution.
*/ */
#include "xml.h"

#ifdef XML_PARSER_VERBOSE #ifdef XML_PARSER_VERBOSE
#include <alloca.h> #include <alloca.h>
#endif #endif
@@ -34,7 +36,6 @@
#include <stdbool.h> #include <stdbool.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include "xml.h"








+ 2
- 1
src/xml.h View File

@@ -27,9 +27,10 @@
/** /**
* Includes * Includes
*/ */
#include <stdbool.h>
#include <stdint.h> #include <stdint.h>
#include <stdio.h>
#include <string.h> #include <string.h>
#include <stdbool.h>


#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {


Loading…
Cancel
Save