mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-21 14:53:44 +03:00
include: Readd circular dependency between tree.h and parser.h
There are dozens of downstream projects that only include tree.h but use declarations from parser.h. This broke after the recent cleanup of circular dependencies. Make tree.h include parser.h again. This is a hack but doesn't change the include directory struture. This commit only made it into the 2.12 branch but wasn't applied to master, so the issue turned up in 2.13.0 again. Should fix #734.
This commit is contained in:
@@ -12,7 +12,9 @@
|
|||||||
#define __XML_ENTITIES_H__
|
#define __XML_ENTITIES_H__
|
||||||
|
|
||||||
#include <libxml/xmlversion.h>
|
#include <libxml/xmlversion.h>
|
||||||
|
#define XML_TREE_INTERNALS
|
||||||
#include <libxml/tree.h>
|
#include <libxml/tree.h>
|
||||||
|
#undef XML_TREE_INTERNALS
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
@@ -11,7 +11,9 @@
|
|||||||
#define __XML_PARSER_H__
|
#define __XML_PARSER_H__
|
||||||
|
|
||||||
#include <libxml/xmlversion.h>
|
#include <libxml/xmlversion.h>
|
||||||
|
#define XML_TREE_INTERNALS
|
||||||
#include <libxml/tree.h>
|
#include <libxml/tree.h>
|
||||||
|
#undef XML_TREE_INTERNALS
|
||||||
#include <libxml/dict.h>
|
#include <libxml/dict.h>
|
||||||
#include <libxml/hash.h>
|
#include <libxml/hash.h>
|
||||||
#include <libxml/valid.h>
|
#include <libxml/valid.h>
|
||||||
|
@@ -9,6 +9,15 @@
|
|||||||
* Author: Daniel Veillard
|
* Author: Daniel Veillard
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifndef XML_TREE_INTERNALS
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Emulate circular dependency for backward compatibility
|
||||||
|
*/
|
||||||
|
#include <libxml/parser.h>
|
||||||
|
|
||||||
|
#else /* XML_TREE_INTERNALS */
|
||||||
|
|
||||||
#ifndef __XML_TREE_H__
|
#ifndef __XML_TREE_H__
|
||||||
#define __XML_TREE_H__
|
#define __XML_TREE_H__
|
||||||
|
|
||||||
@@ -1374,3 +1383,5 @@ XML_DEPRECATED XMLPUBFUN int
|
|||||||
|
|
||||||
#endif /* __XML_TREE_H__ */
|
#endif /* __XML_TREE_H__ */
|
||||||
|
|
||||||
|
#endif /* XML_TREE_INTERNALS */
|
||||||
|
|
||||||
|
@@ -13,7 +13,9 @@
|
|||||||
|
|
||||||
#include <libxml/xmlversion.h>
|
#include <libxml/xmlversion.h>
|
||||||
#include <libxml/xmlerror.h>
|
#include <libxml/xmlerror.h>
|
||||||
|
#define XML_TREE_INTERNALS
|
||||||
#include <libxml/tree.h>
|
#include <libxml/tree.h>
|
||||||
|
#undef XML_TREE_INTERNALS
|
||||||
#include <libxml/list.h>
|
#include <libxml/list.h>
|
||||||
#include <libxml/xmlautomata.h>
|
#include <libxml/xmlautomata.h>
|
||||||
#include <libxml/xmlregexp.h>
|
#include <libxml/xmlregexp.h>
|
||||||
|
@@ -13,7 +13,9 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <libxml/xmlversion.h>
|
#include <libxml/xmlversion.h>
|
||||||
#include <libxml/encoding.h>
|
#include <libxml/encoding.h>
|
||||||
|
#define XML_TREE_INTERNALS
|
||||||
#include <libxml/tree.h>
|
#include <libxml/tree.h>
|
||||||
|
#undef XML_TREE_INTERNALS
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
Reference in New Issue
Block a user