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 */