Go to the documentation of this file.
40#ifndef Expat_External_INCLUDED
41#define Expat_External_INCLUDED 1
69# define XMLCALL __cdecl
70# elif defined(__GNUC__) && defined(__i386) && ! defined(__INTEL_COMPILER)
71# define XMLCALL __attribute__((cdecl))
87#if ! defined(XML_STATIC) && ! defined(XMLIMPORT)
88# ifndef XML_BUILDING_EXPAT
91# if defined(_MSC_EXTENSIONS) && ! defined(__BEOS__) && ! defined(__CYGWIN__)
92# define XMLIMPORT __declspec(dllimport)
98#ifndef XML_ENABLE_VISIBILITY
99# define XML_ENABLE_VISIBILITY 0
102#if ! defined(XMLIMPORT) && XML_ENABLE_VISIBILITY
103# define XMLIMPORT __attribute__((visibility("default")))
111#if defined(__GNUC__) \
112 && (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96))
113# define XML_ATTR_MALLOC __attribute__((__malloc__))
115# define XML_ATTR_MALLOC
118#if defined(__GNUC__) \
119 && ((__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3))
120# define XML_ATTR_ALLOC_SIZE(x) __attribute__((__alloc_size__(x)))
122# define XML_ATTR_ALLOC_SIZE(x)
125#define XMLPARSEAPI(type) XMLIMPORT type XMLCALL
131#ifdef XML_UNICODE_WCHAR_T
135# if defined(__SIZEOF_WCHAR_T__) && (__SIZEOF_WCHAR_T__ != 2)
136# error "sizeof(wchar_t) != 2; Need -fshort-wchar for both Expat and libc"
141# ifdef XML_UNICODE_WCHAR_T