Path: blob/master/venv/Lib/site-packages/lxml/includes/libxslt/xsltexports.h
811 views
/*1* Summary: macros for marking symbols as exportable/importable.2* Description: macros for marking symbols as exportable/importable.3*4* Copy: See Copyright for the status of this software.5*6* Author: Igor Zlatkovic <[email protected]>7*/89#ifndef __XSLT_EXPORTS_H__10#define __XSLT_EXPORTS_H__1112/**13* XSLTPUBFUN:14* XSLTPUBFUN, XSLTPUBVAR, XSLTCALL15*16* Macros which declare an exportable function, an exportable variable and17* the calling convention used for functions.18*19* Please use an extra block for every platform/compiler combination when20* modifying this, rather than overlong #ifdef lines. This helps21* readability as well as the fact that different compilers on the same22* platform might need different definitions.23*/2425/**26* XSLTPUBFUN:27*28* Macros which declare an exportable function29*/30#define XSLTPUBFUN31/**32* XSLTPUBVAR:33*34* Macros which declare an exportable variable35*/36#define XSLTPUBVAR extern37/**38* XSLTCALL:39*40* Macros which declare the called convention for exported functions41*/42#define XSLTCALL4344/** DOC_DISABLE */4546/* Windows platform with MS compiler */47#if defined(_WIN32) && defined(_MSC_VER)48#undef XSLTPUBFUN49#undef XSLTPUBVAR50#undef XSLTCALL51#if defined(IN_LIBXSLT) && !defined(LIBXSLT_STATIC)52#define XSLTPUBFUN __declspec(dllexport)53#define XSLTPUBVAR __declspec(dllexport)54#else55#define XSLTPUBFUN56#if !defined(LIBXSLT_STATIC)57#define XSLTPUBVAR __declspec(dllimport) extern58#else59#define XSLTPUBVAR extern60#endif61#endif62#define XSLTCALL __cdecl63#if !defined _REENTRANT64#define _REENTRANT65#endif66#endif6768/* Windows platform with Borland compiler */69#if defined(_WIN32) && defined(__BORLANDC__)70#undef XSLTPUBFUN71#undef XSLTPUBVAR72#undef XSLTCALL73#if defined(IN_LIBXSLT) && !defined(LIBXSLT_STATIC)74#define XSLTPUBFUN __declspec(dllexport)75#define XSLTPUBVAR __declspec(dllexport) extern76#else77#define XSLTPUBFUN78#if !defined(LIBXSLT_STATIC)79#define XSLTPUBVAR __declspec(dllimport) extern80#else81#define XSLTPUBVAR extern82#endif83#endif84#define XSLTCALL __cdecl85#if !defined _REENTRANT86#define _REENTRANT87#endif88#endif8990/* Windows platform with GNU compiler (Mingw) */91#if defined(_WIN32) && defined(__MINGW32__)92#undef XSLTPUBFUN93#undef XSLTPUBVAR94#undef XSLTCALL95/*96#if defined(IN_LIBXSLT) && !defined(LIBXSLT_STATIC)97*/98#if !defined(LIBXSLT_STATIC)99#define XSLTPUBFUN __declspec(dllexport)100#define XSLTPUBVAR __declspec(dllexport) extern101#else102#define XSLTPUBFUN103#if !defined(LIBXSLT_STATIC)104#define XSLTPUBVAR __declspec(dllimport) extern105#else106#define XSLTPUBVAR extern107#endif108#endif109#define XSLTCALL __cdecl110#if !defined _REENTRANT111#define _REENTRANT112#endif113#endif114115/* Cygwin platform, GNU compiler */116#if defined(_WIN32) && defined(__CYGWIN__)117#undef XSLTPUBFUN118#undef XSLTPUBVAR119#undef XSLTCALL120#if defined(IN_LIBXSLT) && !defined(LIBXSLT_STATIC)121#define XSLTPUBFUN __declspec(dllexport)122#define XSLTPUBVAR __declspec(dllexport)123#else124#define XSLTPUBFUN125#if !defined(LIBXSLT_STATIC)126#define XSLTPUBVAR __declspec(dllimport) extern127#else128#define XSLTPUBVAR129#endif130#endif131#define XSLTCALL __cdecl132#endif133134/* Compatibility */135#if !defined(LIBXSLT_PUBLIC)136#define LIBXSLT_PUBLIC XSLTPUBVAR137#endif138139#endif /* __XSLT_EXPORTS_H__ */140141142143144