From 736327df6bae1ebe82b0e91062f26ca1431bf63b Mon Sep 17 00:00:00 2001 From: Nick Wellnhofer Date: Wed, 20 Sep 2023 19:09:15 +0200 Subject: [PATCH] include: Break inclusion cycle between tree.h and xmlregexp.h --- include/libxml/tree.h | 13 ++----------- include/libxml/xmlregexp.h | 10 +--------- 2 files changed, 3 insertions(+), 20 deletions(-) diff --git a/include/libxml/tree.h b/include/libxml/tree.h index 44fbe5d0..15a6b962 100644 --- a/include/libxml/tree.h +++ b/include/libxml/tree.h @@ -16,6 +16,8 @@ #include #include #include +#include +#include #ifdef __cplusplus extern "C" { @@ -329,14 +331,6 @@ typedef enum { XML_ELEMENT_TYPE_ELEMENT } xmlElementTypeVal; -#ifdef __cplusplus -} -#endif -#include -#ifdef __cplusplus -extern "C" { -#endif - /** * xmlElement: * @@ -1341,9 +1335,6 @@ XMLPUBFUN xmlDeregisterNodeFunc #ifdef __cplusplus } #endif -#ifndef __XML_PARSER_H__ -#include -#endif #endif /* __XML_TREE_H__ */ diff --git a/include/libxml/xmlregexp.h b/include/libxml/xmlregexp.h index 39a72ab3..59f9981f 100644 --- a/include/libxml/xmlregexp.h +++ b/include/libxml/xmlregexp.h @@ -12,6 +12,7 @@ #define __XML_REGEXP_H__ #include +#include #ifdef LIBXML_REGEXP_ENABLED @@ -36,15 +37,6 @@ typedef xmlRegexp *xmlRegexpPtr; typedef struct _xmlRegExecCtxt xmlRegExecCtxt; typedef xmlRegExecCtxt *xmlRegExecCtxtPtr; -#ifdef __cplusplus -} -#endif -#include -#include -#ifdef __cplusplus -extern "C" { -#endif - /* * The POSIX like API */