ReactOS  0.4.15-dev-2355-gaf9df93
xsltexports.h
Go to the documentation of this file.
1 /*
2  * Summary: macros for marking symbols as exportable/importable.
3  * Description: macros for marking symbols as exportable/importable.
4  *
5  * Copy: See Copyright for the status of this software.
6  *
7  * Author: Igor Zlatkovic <igor@zlatkovic.com>
8  */
9 
10 #ifndef __XSLT_EXPORTS_H__
11 #define __XSLT_EXPORTS_H__
12 
31 #define XSLTPUBFUN
32 
37 #define XSLTPUBVAR extern
38 
43 #define XSLTCALL
44 
47 /* Windows platform with MS compiler */
48 #if defined(_WIN32) && defined(_MSC_VER)
49  #undef XSLTPUBFUN
50  #undef XSLTPUBVAR
51  #undef XSLTCALL
52  #if defined(IN_LIBXSLT) && !defined(LIBXSLT_STATIC)
53  #define XSLTPUBFUN __declspec(dllexport)
54  #ifndef __clang__
55  #define XSLTPUBVAR __declspec(dllexport)
56  #else
57  #define XSLTPUBVAR __declspec(dllexport) extern
58  #endif
59  #else
60  #define XSLTPUBFUN
61  #if !defined(LIBXSLT_STATIC)
62  #define XSLTPUBVAR __declspec(dllimport) extern
63  #else
64  #define XSLTPUBVAR extern
65  #endif
66  #endif
67  #define XSLTCALL __cdecl
68  #if !defined _REENTRANT
69  #define _REENTRANT
70  #endif
71 #endif
72 
73 /* Windows platform with Borland compiler */
74 #if defined(_WIN32) && defined(__BORLANDC__)
75  #undef XSLTPUBFUN
76  #undef XSLTPUBVAR
77  #undef XSLTCALL
78  #if defined(IN_LIBXSLT) && !defined(LIBXSLT_STATIC)
79  #define XSLTPUBFUN __declspec(dllexport)
80  #define XSLTPUBVAR __declspec(dllexport) extern
81  #else
82  #define XSLTPUBFUN
83  #if !defined(LIBXSLT_STATIC)
84  #define XSLTPUBVAR __declspec(dllimport) extern
85  #else
86  #define XSLTPUBVAR extern
87  #endif
88  #endif
89  #define XSLTCALL __cdecl
90  #if !defined _REENTRANT
91  #define _REENTRANT
92  #endif
93 #endif
94 
95 /* Windows platform with GNU compiler (Mingw) */
96 #if defined(_WIN32) && defined(__MINGW32__)
97  #undef XSLTPUBFUN
98  #undef XSLTPUBVAR
99  #undef XSLTCALL
100 /*
101  #if defined(IN_LIBXSLT) && !defined(LIBXSLT_STATIC)
102 */
103  #if !defined(LIBXSLT_STATIC)
104  #define XSLTPUBFUN __declspec(dllexport)
105  #define XSLTPUBVAR __declspec(dllexport) extern
106  #else
107  #define XSLTPUBFUN
108  #if !defined(LIBXSLT_STATIC)
109  #define XSLTPUBVAR __declspec(dllimport) extern
110  #else
111  #define XSLTPUBVAR extern
112  #endif
113  #endif
114  #define XSLTCALL __cdecl
115  #if !defined _REENTRANT
116  #define _REENTRANT
117  #endif
118 #endif
119 
120 /* Cygwin platform (does not define _WIN32), GNU compiler */
121 #if defined(__CYGWIN__)
122  #undef XSLTPUBFUN
123  #undef XSLTPUBVAR
124  #undef XSLTCALL
125  #if defined(IN_LIBXSLT) && !defined(LIBXSLT_STATIC)
126  #define XSLTPUBFUN __declspec(dllexport)
127  #define XSLTPUBVAR __declspec(dllexport)
128  #else
129  #define XSLTPUBFUN
130  #if !defined(LIBXSLT_STATIC)
131  #define XSLTPUBVAR __declspec(dllimport) extern
132  #else
133  #define XSLTPUBVAR extern
134  #endif
135  #endif
136  #define XSLTCALL __cdecl
137 #endif
138 
139 /* Compatibility */
140 #if !defined(LIBXSLT_PUBLIC)
141 #define LIBXSLT_PUBLIC XSLTPUBVAR
142 #endif
143 
144 #endif /* __XSLT_EXPORTS_H__ */
145 
146