1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-10-26 12:25:09 +03:00

libxml.h: Don't include stdio.h

This commit is contained in:
Nick Wellnhofer 2022-12-08 03:45:37 +01:00
parent 924ed82735
commit 60d457be30
4 changed files with 6 additions and 9 deletions

View File

@ -14,6 +14,8 @@
#include "libxml.h" #include "libxml.h"
#include <libxml/chvalid.h> #include <libxml/chvalid.h>
#include <stddef.h>
/* /*
* The initial tables ({func_name}_tab) are used to validate whether a * The initial tables ({func_name}_tab) are used to validate whether a
* single-byte character is within the specified group. Each table * single-byte character is within the specified group. Each table

View File

@ -279,6 +279,8 @@ output.write(
#include "libxml.h" #include "libxml.h"
#include <libxml/chvalid.h> #include <libxml/chvalid.h>
#include <stddef.h>
/* /*
* The initial tables ({func_name}_tab) are used to validate whether a * The initial tables ({func_name}_tab) are used to validate whether a
* single-byte character is within the specified group. Each table * single-byte character is within the specified group. Each table

View File

@ -34,15 +34,7 @@
#define SYSCONFDIR "/etc" #define SYSCONFDIR "/etc"
#endif #endif
#ifndef WITH_TRIO #ifdef WITH_TRIO
#include <stdio.h>
#else
/**
* TRIO_REPLACE_STDIO:
*
* This macro is defined if the trio string formatting functions are to
* be used instead of the default stdio ones.
*/
#define TRIO_REPLACE_STDIO #define TRIO_REPLACE_STDIO
#include "trio.h" #include "trio.h"
#endif #endif

View File

@ -10,6 +10,7 @@
#include <string.h> #include <string.h>
#include <stdarg.h> #include <stdarg.h>
#include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <assert.h> #include <assert.h>
#include <time.h> #include <time.h>