[xml] hash.h: define types used in parser.h before including



Rüdiger Oertel just applied the following patch to libxml2-2.6.2:

- change include file hash.h
  define types used in parser.h before including 

--- include/libxml/hash.h
+++ include/libxml/hash.h
@@ -18,9 +18,6 @@
 #ifndef __XML_HASH_H__
 #define __XML_HASH_H__
 
-#include <libxml/xmlversion.h>
-#include <libxml/parser.h>
-
 #ifdef __cplusplus
 extern "C" {
 #endif
@@ -31,6 +28,17 @@
 typedef struct _xmlHashTable xmlHashTable;
 typedef xmlHashTable *xmlHashTablePtr;
 
+#ifdef __cplusplus
+}
+#endif
+
+#include <libxml/xmlversion.h>
+#include <libxml/parser.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
  * function types:
  */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]