Переглянути джерело

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 рік тому
джерело
коміт
66caec13c9
2 змінених файлів з 4 додано та 2 видалено
  1. +2
    -1
      src/xml.c
  2. +2
    -1
      src/xml.h

+ 2
- 1
src/xml.c Переглянути файл

@@ -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 Переглянути файл

@@ -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" {


Завантаження…
Відмінити
Зберегти