annotate modules/javafx.web/src/main/native/Source/ThirdParty/libxml/src/include/libxml/xmlexports.h @ 10839:d4868b8fd76f

8197463: Update libxml2 to version 2.9.7 Reviewed-by: kcr, mbilla
author arajkumar
date Wed, 14 Feb 2018 07:01:23 -0800
parents 4b66f694e70f
children 15adcac0b7e5
rev   line source
arajkumar@10500 1 /*
arajkumar@10500 2 * Summary: macros for marking symbols as exportable/importable.
arajkumar@10500 3 * Description: macros for marking symbols as exportable/importable.
arajkumar@10500 4 *
arajkumar@10500 5 * Copy: See Copyright for the status of this software.
arajkumar@10500 6 *
arajkumar@10500 7 * Author: Igor Zlatovic <igor@zlatkovic.com>
arajkumar@10500 8 */
arajkumar@10500 9
arajkumar@10500 10 #ifndef __XML_EXPORTS_H__
arajkumar@10500 11 #define __XML_EXPORTS_H__
arajkumar@10500 12
arajkumar@10500 13 /**
arajkumar@10500 14 * XMLPUBFUN, XMLPUBVAR, XMLCALL
arajkumar@10500 15 *
arajkumar@10500 16 * Macros which declare an exportable function, an exportable variable and
arajkumar@10500 17 * the calling convention used for functions.
arajkumar@10500 18 *
arajkumar@10500 19 * Please use an extra block for every platform/compiler combination when
arajkumar@10500 20 * modifying this, rather than overlong #ifdef lines. This helps
arajkumar@10500 21 * readability as well as the fact that different compilers on the same
arajkumar@10500 22 * platform might need different definitions.
arajkumar@10500 23 */
arajkumar@10500 24
arajkumar@10500 25 /**
arajkumar@10500 26 * XMLPUBFUN:
arajkumar@10500 27 *
arajkumar@10500 28 * Macros which declare an exportable function
arajkumar@10500 29 */
arajkumar@10500 30 #define XMLPUBFUN
arajkumar@10500 31 /**
arajkumar@10500 32 * XMLPUBVAR:
arajkumar@10500 33 *
arajkumar@10500 34 * Macros which declare an exportable variable
arajkumar@10500 35 */
arajkumar@10500 36 #define XMLPUBVAR extern
arajkumar@10500 37 /**
arajkumar@10500 38 * XMLCALL:
arajkumar@10500 39 *
arajkumar@10500 40 * Macros which declare the called convention for exported functions
arajkumar@10500 41 */
arajkumar@10500 42 #define XMLCALL
arajkumar@10500 43 /**
arajkumar@10500 44 * XMLCDECL:
arajkumar@10500 45 *
arajkumar@10500 46 * Macro which declares the calling convention for exported functions that
arajkumar@10500 47 * use '...'.
arajkumar@10500 48 */
arajkumar@10500 49 #define XMLCDECL
arajkumar@10500 50
arajkumar@10500 51 /** DOC_DISABLE */
arajkumar@10500 52
arajkumar@10500 53 /* Windows platform with MS compiler */
arajkumar@10500 54 #if defined(_WIN32) && defined(_MSC_VER)
arajkumar@10500 55 #undef XMLPUBFUN
arajkumar@10500 56 #undef XMLPUBVAR
arajkumar@10500 57 #undef XMLCALL
arajkumar@10500 58 #undef XMLCDECL
arajkumar@10500 59 #if defined(IN_LIBXML) && !defined(LIBXML_STATIC)
arajkumar@10500 60 #define XMLPUBFUN __declspec(dllexport)
arajkumar@10500 61 #define XMLPUBVAR __declspec(dllexport)
arajkumar@10500 62 #else
arajkumar@10500 63 #define XMLPUBFUN
arajkumar@10500 64 #if !defined(LIBXML_STATIC)
arajkumar@10500 65 #define XMLPUBVAR __declspec(dllimport) extern
arajkumar@10500 66 #else
arajkumar@10500 67 #define XMLPUBVAR extern
arajkumar@10500 68 #endif
arajkumar@10500 69 #endif
arajkumar@10500 70 #if defined(LIBXML_FASTCALL)
arajkumar@10500 71 #define XMLCALL __fastcall
arajkumar@10500 72 #else
arajkumar@10500 73 #define XMLCALL __cdecl
arajkumar@10500 74 #endif
arajkumar@10500 75 #define XMLCDECL __cdecl
arajkumar@10500 76 #if !defined _REENTRANT
arajkumar@10500 77 #define _REENTRANT
arajkumar@10500 78 #endif
arajkumar@10500 79 #endif
arajkumar@10500 80
arajkumar@10500 81 /* Windows platform with Borland compiler */
arajkumar@10500 82 #if defined(_WIN32) && defined(__BORLANDC__)
arajkumar@10500 83 #undef XMLPUBFUN
arajkumar@10500 84 #undef XMLPUBVAR
arajkumar@10500 85 #undef XMLCALL
arajkumar@10500 86 #undef XMLCDECL
arajkumar@10500 87 #if defined(IN_LIBXML) && !defined(LIBXML_STATIC)
arajkumar@10500 88 #define XMLPUBFUN __declspec(dllexport)
arajkumar@10500 89 #define XMLPUBVAR __declspec(dllexport) extern
arajkumar@10500 90 #else
arajkumar@10500 91 #define XMLPUBFUN
arajkumar@10500 92 #if !defined(LIBXML_STATIC)
arajkumar@10500 93 #define XMLPUBVAR __declspec(dllimport) extern
arajkumar@10500 94 #else
arajkumar@10500 95 #define XMLPUBVAR extern
arajkumar@10500 96 #endif
arajkumar@10500 97 #endif
arajkumar@10500 98 #define XMLCALL __cdecl
arajkumar@10500 99 #define XMLCDECL __cdecl
arajkumar@10500 100 #if !defined _REENTRANT
arajkumar@10500 101 #define _REENTRANT
arajkumar@10500 102 #endif
arajkumar@10500 103 #endif
arajkumar@10500 104
arajkumar@10500 105 /* Windows platform with GNU compiler (Mingw) */
arajkumar@10500 106 #if defined(_WIN32) && defined(__MINGW32__)
arajkumar@10500 107 #undef XMLPUBFUN
arajkumar@10500 108 #undef XMLPUBVAR
arajkumar@10500 109 #undef XMLCALL
arajkumar@10500 110 #undef XMLCDECL
arajkumar@10839 111 /*
arajkumar@10839 112 * if defined(IN_LIBXML) this raises problems on mingw with msys
arajkumar@10839 113 * _imp__xmlFree listed as missing. Try to workaround the problem
arajkumar@10839 114 * by also making that declaration when compiling client code.
arajkumar@10839 115 */
arajkumar@10500 116 #if defined(IN_LIBXML) && !defined(LIBXML_STATIC)
arajkumar@10500 117 #define XMLPUBFUN __declspec(dllexport)
arajkumar@10839 118 #define XMLPUBVAR __declspec(dllexport) extern
arajkumar@10500 119 #else
arajkumar@10500 120 #define XMLPUBFUN
arajkumar@10500 121 #if !defined(LIBXML_STATIC)
arajkumar@10500 122 #define XMLPUBVAR __declspec(dllimport) extern
arajkumar@10500 123 #else
arajkumar@10500 124 #define XMLPUBVAR extern
arajkumar@10500 125 #endif
arajkumar@10500 126 #endif
arajkumar@10500 127 #define XMLCALL __cdecl
arajkumar@10500 128 #define XMLCDECL __cdecl
arajkumar@10500 129 #if !defined _REENTRANT
arajkumar@10500 130 #define _REENTRANT
arajkumar@10500 131 #endif
arajkumar@10500 132 #endif
arajkumar@10500 133
arajkumar@10500 134 /* Cygwin platform, GNU compiler */
arajkumar@10500 135 #if defined(_WIN32) && defined(__CYGWIN__)
arajkumar@10500 136 #undef XMLPUBFUN
arajkumar@10500 137 #undef XMLPUBVAR
arajkumar@10500 138 #undef XMLCALL
arajkumar@10500 139 #undef XMLCDECL
arajkumar@10500 140 #if defined(IN_LIBXML) && !defined(LIBXML_STATIC)
arajkumar@10500 141 #define XMLPUBFUN __declspec(dllexport)
arajkumar@10500 142 #define XMLPUBVAR __declspec(dllexport)
arajkumar@10500 143 #else
arajkumar@10500 144 #define XMLPUBFUN
arajkumar@10500 145 #if !defined(LIBXML_STATIC)
arajkumar@10500 146 #define XMLPUBVAR __declspec(dllimport) extern
arajkumar@10500 147 #else
arajkumar@10500 148 #define XMLPUBVAR
arajkumar@10500 149 #endif
arajkumar@10500 150 #endif
arajkumar@10500 151 #define XMLCALL __cdecl
arajkumar@10500 152 #define XMLCDECL __cdecl
arajkumar@10500 153 #endif
arajkumar@10500 154
arajkumar@10500 155 /* Compatibility */
arajkumar@10500 156 #if !defined(LIBXML_DLL_IMPORT)
arajkumar@10500 157 #define LIBXML_DLL_IMPORT XMLPUBVAR
arajkumar@10500 158 #endif
arajkumar@10500 159
arajkumar@10500 160 #endif /* __XML_EXPORTS_H__ */
arajkumar@10500 161
arajkumar@10500 162