File indexing completed on 2026-09-20 09:15:15
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011 #ifndef __XML_EXPORTS_H__
0012 #define __XML_EXPORTS_H__
0013
0014
0015
0016
0017
0018 #if (defined(_WIN32) || defined(__CYGWIN__)) && !defined(LIBXML_STATIC)
0019 #if defined(IN_LIBXML)
0020 #define XMLPUBFUN __declspec(dllexport)
0021 #define XMLPUBVAR __declspec(dllexport) extern
0022 #else
0023 #define XMLPUBFUN __declspec(dllimport)
0024 #define XMLPUBVAR __declspec(dllimport) extern
0025 #endif
0026 #else
0027 #define XMLPUBFUN
0028 #define XMLPUBVAR extern
0029 #endif
0030
0031
0032 #define XMLCALL
0033 #define XMLCDECL
0034 #ifndef LIBXML_DLL_IMPORT
0035 #define LIBXML_DLL_IMPORT XMLPUBVAR
0036 #endif
0037
0038
0039
0040
0041
0042 #if !defined(__clang__) && (__GNUC__ * 100 + __GNUC_MINOR__ >= 403)
0043 #define LIBXML_ATTR_ALLOC_SIZE(x) __attribute__((alloc_size(x)))
0044 #else
0045 #define LIBXML_ATTR_ALLOC_SIZE(x)
0046 #endif
0047
0048 #if __GNUC__ * 100 + __GNUC_MINOR__ >= 303
0049 #define LIBXML_ATTR_FORMAT(fmt,args) \
0050 __attribute__((__format__(__printf__,fmt,args)))
0051 #else
0052 #define LIBXML_ATTR_FORMAT(fmt,args)
0053 #endif
0054
0055 #ifndef XML_DEPRECATED
0056 #if defined(IN_LIBXML)
0057 #define XML_DEPRECATED
0058 #elif __GNUC__ * 100 + __GNUC_MINOR__ >= 405
0059
0060 #define XML_DEPRECATED __attribute__((deprecated("See https://gnome.pages.gitlab.gnome.org/libxml2/html/deprecated.html")))
0061 #elif __GNUC__ * 100 + __GNUC_MINOR__ >= 301
0062
0063 #define XML_DEPRECATED __attribute__((deprecated))
0064 #elif defined(_MSC_VER) && _MSC_VER >= 1400
0065
0066 #define XML_DEPRECATED __declspec(deprecated("See https://gnome.pages.gitlab.gnome.org/libxml2/html/deprecated.html"))
0067 #else
0068 #define XML_DEPRECATED
0069 #endif
0070 #endif
0071
0072 #ifndef XML_DEPRECATED_MEMBER
0073 #if defined(IN_LIBXML)
0074 #define XML_DEPRECATED_MEMBER
0075 #elif __GNUC__ * 100 + __GNUC_MINOR__ >= 301
0076 #define XML_DEPRECATED_MEMBER __attribute__((deprecated))
0077 #else
0078 #define XML_DEPRECATED_MEMBER
0079 #endif
0080 #endif
0081
0082
0083
0084
0085
0086 #ifdef __cplusplus
0087 extern "C" {
0088 #endif
0089
0090 XMLPUBFUN void xmlCheckVersion(int version);
0091
0092 #ifdef __cplusplus
0093 }
0094 #endif
0095
0096 #endif
0097
0098