From 60d457be30d1230fd73df7530638b5191ec75d4d Mon Sep 17 00:00:00 2001 From: Nick Wellnhofer Date: Thu, 8 Dec 2022 03:45:37 +0100 Subject: [PATCH] libxml.h: Don't include stdio.h --- chvalid.c | 2 ++ genChRanges.py | 2 ++ libxml.h | 10 +--------- xmllint.c | 1 + 4 files changed, 6 insertions(+), 9 deletions(-) diff --git a/chvalid.c b/chvalid.c index f4fa44ac..fb2c715a 100644 --- a/chvalid.c +++ b/chvalid.c @@ -14,6 +14,8 @@ #include "libxml.h" #include +#include + /* * The initial tables ({func_name}_tab) are used to validate whether a * single-byte character is within the specified group. Each table diff --git a/genChRanges.py b/genChRanges.py index 47b46098..4e229d19 100755 --- a/genChRanges.py +++ b/genChRanges.py @@ -279,6 +279,8 @@ output.write( #include "libxml.h" #include +#include + /* * The initial tables ({func_name}_tab) are used to validate whether a * single-byte character is within the specified group. Each table diff --git a/libxml.h b/libxml.h index 31b90e1c..722929f7 100644 --- a/libxml.h +++ b/libxml.h @@ -34,15 +34,7 @@ #define SYSCONFDIR "/etc" #endif -#ifndef WITH_TRIO -#include -#else -/** - * TRIO_REPLACE_STDIO: - * - * This macro is defined if the trio string formatting functions are to - * be used instead of the default stdio ones. - */ +#ifdef WITH_TRIO #define TRIO_REPLACE_STDIO #include "trio.h" #endif diff --git a/xmllint.c b/xmllint.c index d398cd5a..2f0ada1f 100644 --- a/xmllint.c +++ b/xmllint.c @@ -10,6 +10,7 @@ #include #include +#include #include #include #include