123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140 |
- /*
- * exsltexports.h : macros for marking symbols as exportable/importable.
- *
- * See Copyright for the status of this software.
- *
- * igor@zlatkovic.com
- */
- #ifndef __EXSLT_EXPORTS_H__
- #define __EXSLT_EXPORTS_H__
- /**
- * EXSLTPUBFUN, EXSLTPUBVAR, EXSLTCALL
- *
- * Macros which declare an exportable function, an exportable variable and
- * the calling convention used for functions.
- *
- * Please use an extra block for every platform/compiler combination when
- * modifying this, rather than overlong #ifdef lines. This helps
- * readability as well as the fact that different compilers on the same
- * platform might need different definitions.
- */
- /**
- * EXSLTPUBFUN:
- *
- * Macros which declare an exportable function
- */
- #define EXSLTPUBFUN
- /**
- * EXSLTPUBVAR:
- *
- * Macros which declare an exportable variable
- */
- #define EXSLTPUBVAR extern
- /**
- * EXSLTCALL:
- *
- * Macros which declare the called convention for exported functions
- */
- #define EXSLTCALL
- /** DOC_DISABLE */
- /* Windows platform with MS compiler */
- #if defined(_WIN32) && defined(_MSC_VER)
- #undef EXSLTPUBFUN
- #undef EXSLTPUBVAR
- #undef EXSLTCALL
- #if defined(IN_LIBEXSLT) && !defined(LIBEXSLT_STATIC)
- #define EXSLTPUBFUN __declspec(dllexport)
- #define EXSLTPUBVAR __declspec(dllexport)
- #else
- #define EXSLTPUBFUN
- #if !defined(LIBEXSLT_STATIC)
- #define EXSLTPUBVAR __declspec(dllimport) extern
- #else
- #define EXSLTPUBVAR extern
- #endif
- #endif
- #define EXSLTCALL __cdecl
- #if !defined _REENTRANT
- #define _REENTRANT
- #endif
- #endif
- /* Windows platform with Borland compiler */
- #if defined(_WIN32) && defined(__BORLANDC__)
- #undef EXSLTPUBFUN
- #undef EXSLTPUBVAR
- #undef EXSLTCALL
- #if defined(IN_LIBEXSLT) && !defined(LIBEXSLT_STATIC)
- #define EXSLTPUBFUN __declspec(dllexport)
- #define EXSLTPUBVAR __declspec(dllexport) extern
- #else
- #define EXSLTPUBFUN
- #if !defined(LIBEXSLT_STATIC)
- #define EXSLTPUBVAR __declspec(dllimport) extern
- #else
- #define EXSLTPUBVAR extern
- #endif
- #endif
- #define EXSLTCALL __cdecl
- #if !defined _REENTRANT
- #define _REENTRANT
- #endif
- #endif
- /* Windows platform with GNU compiler (Mingw) */
- #if defined(_WIN32) && defined(__MINGW32__)
- #undef EXSLTPUBFUN
- #undef EXSLTPUBVAR
- #undef EXSLTCALL
- /*
- #if defined(IN_LIBEXSLT) && !defined(LIBEXSLT_STATIC)
- */
- #if !defined(LIBEXSLT_STATIC)
- #define EXSLTPUBFUN __declspec(dllexport)
- #define EXSLTPUBVAR __declspec(dllexport) extern
- #else
- #define EXSLTPUBFUN
- #if !defined(LIBEXSLT_STATIC)
- #define EXSLTPUBVAR __declspec(dllimport) extern
- #else
- #define EXSLTPUBVAR extern
- #endif
- #endif
- #define EXSLTCALL __cdecl
- #if !defined _REENTRANT
- #define _REENTRANT
- #endif
- #endif
- /* Cygwin platform, GNU compiler */
- #if defined(_WIN32) && defined(__CYGWIN__)
- #undef EXSLTPUBFUN
- #undef EXSLTPUBVAR
- #undef EXSLTCALL
- #if defined(IN_LIBEXSLT) && !defined(LIBEXSLT_STATIC)
- #define EXSLTPUBFUN __declspec(dllexport)
- #define EXSLTPUBVAR __declspec(dllexport)
- #else
- #define EXSLTPUBFUN
- #if !defined(LIBEXSLT_STATIC)
- #define EXSLTPUBVAR __declspec(dllimport) extern
- #else
- #define EXSLTPUBVAR
- #endif
- #endif
- #define EXSLTCALL __cdecl
- #endif
- /* Compatibility */
- #if !defined(LIBEXSLT_PUBLIC)
- #define LIBEXSLT_PUBLIC EXSLTPUBVAR
- #endif
- #endif /* __EXSLT_EXPORTS_H__ */
|