2001-04-21 20:57:29 +04:00
/*
* libxml . h : internal header only used during the compilation of libxml
*
* See COPYRIGHT for the status of this software
*
* Author : breese @ users . sourceforge . net
*/
# ifndef __XML_LIBXML_H__
# define __XML_LIBXML_H__
2003-04-18 16:34:58 +04:00
# ifndef NO_LARGEFILE_SOURCE
# ifndef _LARGEFILE_SOURCE
# define _LARGEFILE_SOURCE
# endif
# ifndef _FILE_OFFSET_BITS
# define _FILE_OFFSET_BITS 64
# endif
# endif
2003-08-28 14:25:13 +04:00
# if defined(macintosh)
2001-12-05 15:03:33 +03:00
# include "config-mac.h"
2007-04-18 11:51:50 +04:00
# elif defined(_WIN32_WCE)
/*
* Windows CE compatibility definitions and functions
* This is needed to compile libxml2 for Windows CE .
* At least I tested it with WinCE 5.0 for Emulator and WinCE 4.2 / SH4 target
*/
# include <win32config.h>
# include <libxml/xmlversion.h>
2001-04-21 20:57:29 +04:00
# else
# include "config.h"
# include <libxml/xmlversion.h>
2001-06-28 16:54:16 +04:00
# endif
2001-04-21 20:57:29 +04:00
2006-05-31 17:35:28 +04:00
# if defined(__Lynx__)
# include <stdio.h> /* pull definition of size_t */
# include <varargs.h>
int snprintf ( char * , size_t , const char * , . . . ) ;
int vfprintf ( FILE * , const char * , va_list ) ;
# endif
2001-09-11 00:16:32 +04:00
# ifndef WITH_TRIO
2001-04-21 20:57:29 +04:00
# include <stdio.h>
# else
2001-07-18 23:30:27 +04:00
/**
* TRIO_REPLACE_STDIO :
*
* This macro is defined if teh trio string formatting functions are to
* be used instead of the default stdio ones .
*/
2001-04-21 20:57:29 +04:00
# define TRIO_REPLACE_STDIO
# include "trio.h"
# endif
2003-04-22 01:36:41 +04:00
/*
* 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 ;
2003-10-27 14:25:13 +03:00
/*
* internal error reporting routines , shared but not partof the API .
*/
2003-10-10 23:36:36 +04:00
void __xmlIOErr ( int domain , int code , const char * extra ) ;
2003-10-27 14:25:13 +03:00
void __xmlLoaderErr ( void * ctx , const char * msg , const char * filename ) ;
2006-01-18 20:22:35 +03:00
# ifdef LIBXML_HTML_ENABLED
/*
* internal function of HTML parser needed for xmlParseInNodeContext
* but not part of the API
*/
void __htmlParseContent ( void * ctx ) ;
# endif
2007-02-12 20:31:53 +03:00
/*
* internal global initialization critical section routines .
*/
void __xmlGlobalInitMutexLock ( void ) ;
void __xmlGlobalInitMutexUnlock ( void ) ;
2007-11-16 13:54:59 +03:00
void __xmlGlobalInitMutexDestroy ( void ) ;
2004-06-27 16:08:10 +04:00
# ifdef IN_LIBXML
# ifdef __GNUC__
2004-07-09 16:05:25 +04:00
# ifdef PIC
2004-06-27 16:08:10 +04:00
# ifdef linux
2005-03-10 12:22:07 +03:00
# if (__GNUC__ == 3 && __GNUC_MINOR__ >= 3) || (__GNUC__ > 3)
2004-06-27 16:08:10 +04:00
# include "elfgcchack.h"
# endif
# endif
# endif
2004-07-09 16:05:25 +04:00
# endif
2005-03-10 12:22:07 +03:00
# endif
2010-03-19 13:31:55 +03:00
# if !defined(PIC) && !defined(NOLIBTOOL)
2010-03-10 12:07:49 +03:00
# define LIBXML_STATIC
# endif
2001-04-21 20:57:29 +04:00
# endif /* ! __XML_LIBXML_H__ */