2001-04-21 16:57:29 +00: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__
|
|
|
|
|
2022-04-27 12:39:12 +02:00
|
|
|
/*
|
|
|
|
* These macros must be defined before including system headers.
|
|
|
|
* Do not add any #include directives above this block.
|
|
|
|
*/
|
2003-04-18 12:34:58 +00:00
|
|
|
#ifndef NO_LARGEFILE_SOURCE
|
|
|
|
#ifndef _LARGEFILE_SOURCE
|
|
|
|
#define _LARGEFILE_SOURCE
|
|
|
|
#endif
|
|
|
|
#ifndef _FILE_OFFSET_BITS
|
|
|
|
#define _FILE_OFFSET_BITS 64
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
2012-08-13 16:56:11 +08:00
|
|
|
/*
|
|
|
|
* Currently supported platforms use either autoconf or
|
|
|
|
* copy to config.h own "preset" configuration file.
|
2019-09-30 17:04:54 +02:00
|
|
|
* As result ifdef HAVE_CONFIG_H is omitted here.
|
2012-08-13 16:56:11 +08:00
|
|
|
*/
|
2001-04-21 16:57:29 +00:00
|
|
|
#include "config.h"
|
|
|
|
#include <libxml/xmlversion.h>
|
|
|
|
|
2022-03-30 00:32:35 +02:00
|
|
|
#ifndef SYSCONFDIR
|
|
|
|
#define SYSCONFDIR "/etc"
|
|
|
|
#endif
|
|
|
|
|
2006-05-31 13:35:28 +00: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-10 20:16:32 +00:00
|
|
|
#ifndef WITH_TRIO
|
2001-04-21 16:57:29 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
#else
|
2001-07-18 19:30:27 +00:00
|
|
|
/**
|
|
|
|
* TRIO_REPLACE_STDIO:
|
|
|
|
*
|
2019-09-30 17:04:54 +02:00
|
|
|
* This macro is defined if the trio string formatting functions are to
|
2001-07-18 19:30:27 +00:00
|
|
|
* be used instead of the default stdio ones.
|
|
|
|
*/
|
2001-04-21 16:57:29 +00:00
|
|
|
#define TRIO_REPLACE_STDIO
|
|
|
|
#include "trio.h"
|
|
|
|
#endif
|
|
|
|
|
2019-05-16 21:17:28 +02:00
|
|
|
#if defined(__clang__) || \
|
|
|
|
(defined(__GNUC__) && (__GNUC__ >= 8))
|
|
|
|
#define ATTRIBUTE_NO_SANITIZE(arg) __attribute__((no_sanitize(arg)))
|
|
|
|
#else
|
|
|
|
#define ATTRIBUTE_NO_SANITIZE(arg)
|
|
|
|
#endif
|
|
|
|
|
2017-10-21 13:57:44 +02:00
|
|
|
#if !defined(PIC) && !defined(NOLIBTOOL) && !defined(LIBXML_STATIC)
|
2010-03-10 10:07:49 +01:00
|
|
|
# define LIBXML_STATIC
|
|
|
|
#endif
|
2001-04-21 16:57:29 +00:00
|
|
|
#endif /* ! __XML_LIBXML_H__ */
|