blob: fcf0f9e63bb80ba83fc8171bf020119e6e8fbd46 [file] [log] [blame]
Bjorn Reese70a9da52001-04-21 16:57:29 +00001/*
2 * libxml.h: internal header only used during the compilation of libxml
3 *
4 * See COPYRIGHT for the status of this software
5 *
6 * Author: breese@users.sourceforge.net
7 */
8
9#ifndef __XML_LIBXML_H__
10#define __XML_LIBXML_H__
11
Daniel Veillard3e59fc52003-04-18 12:34:58 +000012#ifndef NO_LARGEFILE_SOURCE
13#ifndef _LARGEFILE_SOURCE
14#define _LARGEFILE_SOURCE
15#endif
16#ifndef _FILE_OFFSET_BITS
17#define _FILE_OFFSET_BITS 64
18#endif
19#endif
20
Daniel Veillard6761eee2001-06-11 10:29:38 +000021#if defined(WIN32) && !defined(__CYGWIN__)
Bjorn Reese70a9da52001-04-21 16:57:29 +000022#include "win32config.h"
Daniel Veillardd3b08822001-12-05 12:03:33 +000023#elif defined(macintosh)
24#include "config-mac.h"
Bjorn Reese70a9da52001-04-21 16:57:29 +000025#else
26#include "config.h"
Bjorn Reese70a9da52001-04-21 16:57:29 +000027#include <libxml/xmlversion.h>
Daniel Veillard87ee9142001-06-28 12:54:16 +000028#endif
Bjorn Reese70a9da52001-04-21 16:57:29 +000029
Daniel Veillard7cf5e442001-09-10 20:16:32 +000030#ifndef WITH_TRIO
Bjorn Reese70a9da52001-04-21 16:57:29 +000031#include <stdio.h>
32#else
Daniel Veillard5e2dace2001-07-18 19:30:27 +000033/**
34 * TRIO_REPLACE_STDIO:
35 *
36 * This macro is defined if teh trio string formatting functions are to
37 * be used instead of the default stdio ones.
38 */
Bjorn Reese70a9da52001-04-21 16:57:29 +000039#define TRIO_REPLACE_STDIO
40#include "trio.h"
41#endif
Bjorn Reese70a9da52001-04-21 16:57:29 +000042
Daniel Veillarda880b122003-04-21 21:36:41 +000043/*
44 * Internal variable indicating if a callback has been registered for
45 * node creation/destruction. It avoids spending a lot of time in locking
46 * function while checking if the callback exists.
47 */
48extern int __xmlRegisterCallbacks;
Bjorn Reese70a9da52001-04-21 16:57:29 +000049#endif /* ! __XML_LIBXML_H__ */