123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129 |
- #ifndef Expat_External_INCLUDED
- #define Expat_External_INCLUDED 1
- #if defined(_MSC_EXTENSIONS) && !defined(__BEOS__) && !defined(__CYGWIN__)
- #define XML_USE_MSC_EXTENSIONS 1
- #endif
- #ifndef XMLCALL
- #if defined(_MSC_VER)
- #define XMLCALL __cdecl
- #elif defined(__GNUC__) && defined(__i386) && !defined(__INTEL_COMPILER)
- #define XMLCALL __attribute__((cdecl))
- #else
- #define XMLCALL
- #endif
- #endif
- #if !defined(XML_STATIC) && !defined(XMLIMPORT)
- #ifndef XML_BUILDING_EXPAT
- #ifdef XML_USE_MSC_EXTENSIONS
- #define XMLIMPORT __declspec(dllimport)
- #endif
- #endif
- #endif
- #if !defined(XMLIMPORT) && defined(__GNUC__) && (__GNUC__ >= 4)
- #define XMLIMPORT __attribute__ ((visibility ("default")))
- #endif
- #ifndef XMLIMPORT
- #define XMLIMPORT
- #endif
- #if defined(__GNUC__) && (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96))
- #define XML_ATTR_MALLOC __attribute__((__malloc__))
- #else
- #define XML_ATTR_MALLOC
- #endif
- #if defined(__GNUC__) && ((__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3))
- #define XML_ATTR_ALLOC_SIZE(x) __attribute__((__alloc_size__(x)))
- #else
- #define XML_ATTR_ALLOC_SIZE(x)
- #endif
- #define XMLPARSEAPI(type) XMLIMPORT type XMLCALL
- #ifdef __cplusplus
- extern "C" {
- #endif
- #ifdef XML_UNICODE_WCHAR_T
- #define XML_UNICODE
- #endif
- #ifdef XML_UNICODE
- #ifdef XML_UNICODE_WCHAR_T
- typedef wchar_t XML_Char;
- typedef wchar_t XML_LChar;
- #else
- typedef unsigned short XML_Char;
- typedef char XML_LChar;
- #endif
- #else
- typedef char XML_Char;
- typedef char XML_LChar;
- #endif
- #ifdef XML_LARGE_SIZE
- #if defined(XML_USE_MSC_EXTENSIONS) && _MSC_VER < 1400
- typedef __int64 XML_Index;
- typedef unsigned __int64 XML_Size;
- #else
- typedef long long XML_Index;
- typedef unsigned long long XML_Size;
- #endif
- #else
- typedef long XML_Index;
- typedef unsigned long XML_Size;
- #endif
- #ifdef __cplusplus
- }
- #endif
- #endif
|