updated libxml2 to 2.5.10
[TestXSLT.git] / libxml2 / libxml.h
index 6b7476f..b26ff57 100644 (file)
@@ -9,7 +9,16 @@
 #ifndef __XML_LIBXML_H__
 #define __XML_LIBXML_H__
 
-#if defined(WIN32) && !defined(__CYGWIN__)
+#ifndef NO_LARGEFILE_SOURCE
+#ifndef _LARGEFILE_SOURCE
+#define _LARGEFILE_SOURCE
+#endif
+#ifndef _FILE_OFFSET_BITS
+#define _FILE_OFFSET_BITS 64
+#endif
+#endif
+
+#if defined(WIN32) && !defined(__CYGWIN__) && !defined(__MINGW32__)
 #include "win32config.h"
 #elif defined(macintosh)
 #include "config-mac.h"
 #include "trio.h"
 #endif
 
+/*
+ * Internal variable indicating if a callback has been registered for
+ * node creation/destruction. It avoids spending a lot of time in locking
+ * function while checking if the callback exists.
+ */
+extern int __xmlRegisterCallbacks;
 #endif /* ! __XML_LIBXML_H__ */