epoc32/include/stdapis/libxml2/libxml2_xmlexports.h
branchSymbian3
changeset 4 837f303aceeb
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/epoc32/include/stdapis/libxml2/libxml2_xmlexports.h	Wed Mar 31 12:33:34 2010 +0100
     1.3 @@ -0,0 +1,166 @@
     1.4 +/*
     1.5 + * Summary: macros for marking symbols as exportable/importable.
     1.6 + * Description: macros for marking symbols as exportable/importable.
     1.7 + *
     1.8 + * Copy: See Copyright for the status of this software.
     1.9 + *
    1.10 + * Author: Igor Zlatovic <igor@zlatkovic.com>
    1.11 + * Portion Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies). All rights reserved. 
    1.12 + */
    1.13 +
    1.14 +/** @file
    1.15 +@publishedAll
    1.16 +@released
    1.17 +*/
    1.18 +
    1.19 +#ifndef XML_EXPORTS_H
    1.20 +#define XML_EXPORTS_H
    1.21 +
    1.22 +/**
    1.23 + * XMLPUBFUN, XMLPUBVAR, XMLCALL
    1.24 + *
    1.25 + * Macros which declare an exportable function, an exportable variable and
    1.26 + * the calling convention used for functions.
    1.27 + *
    1.28 + * Please use an extra block for every platform/compiler combination when
    1.29 + * modifying this, rather than overlong #ifdef lines. This helps
    1.30 + * readability as well as the fact that different compilers on the same
    1.31 + * platform might need different definitions.
    1.32 + */
    1.33 +
    1.34 +/**
    1.35 + * XMLPUBFUN:
    1.36 + *
    1.37 + * Macros which declare an exportable function
    1.38 + */
    1.39 +#define XMLPUBFUN
    1.40 +/**
    1.41 + * XMLPUBVAR:
    1.42 + *
    1.43 + * Macros which declare an exportable variable
    1.44 + */
    1.45 +#define XMLPUBVAR extern
    1.46 +/**
    1.47 + * XMLCALL:
    1.48 + *
    1.49 + * Macros which declare the called convention for exported functions
    1.50 + */
    1.51 +#define XMLCALL
    1.52 +#define XMLPUBFUNEXPORT __declspec(dllexport)
    1.53 +
    1.54 +/** DOC_DISABLE */
    1.55 +
    1.56 +/* Windows platform with MS compiler */
    1.57 +#if defined(_WIN32) && defined(_MSC_VER)
    1.58 +  #undef XMLPUBFUN
    1.59 +  #undef XMLPUBVAR
    1.60 +  #undef XMLCALL
    1.61 +  #if defined(IN_LIBXML) && !defined(LIBXML_STATIC)
    1.62 +    #define XMLPUBFUN __declspec(dllexport)
    1.63 +    #define XMLPUBVAR __declspec(dllexport)
    1.64 +  #else
    1.65 +    #define XMLPUBFUN
    1.66 +    #if !defined(LIBXML_STATIC)
    1.67 +      #define XMLPUBVAR __declspec(dllimport) extern
    1.68 +    #else
    1.69 +      #define XMLPUBVAR extern
    1.70 +    #endif
    1.71 +  #endif
    1.72 +  #define XMLCALL __cdecl
    1.73 +  #if !defined _REENTRANT
    1.74 +    #define _REENTRANT
    1.75 +  #endif
    1.76 +#endif
    1.77 +
    1.78 +/* Windows platform with Borland compiler */
    1.79 +#if defined(_WIN32) && defined(__BORLANDC__)
    1.80 +  #undef XMLPUBFUN
    1.81 +  #undef XMLPUBVAR
    1.82 +  #undef XMLCALL
    1.83 +  #if defined(IN_LIBXML) && !defined(LIBXML_STATIC)
    1.84 +    #define XMLPUBFUN __declspec(dllexport)
    1.85 +    #define XMLPUBVAR __declspec(dllexport) extern
    1.86 +  #else
    1.87 +    #define XMLPUBFUN
    1.88 +    #if !defined(LIBXML_STATIC)
    1.89 +      #define XMLPUBVAR __declspec(dllimport) extern
    1.90 +    #else
    1.91 +      #define XMLPUBVAR extern
    1.92 +    #endif
    1.93 +  #endif
    1.94 +  #define XMLCALL __cdecl
    1.95 +  #if !defined _REENTRANT
    1.96 +    #define _REENTRANT
    1.97 +  #endif
    1.98 +#endif
    1.99 +
   1.100 +/* Windows platform with GNU compiler (Mingw) */
   1.101 +#if defined(_WIN32) && defined(__MINGW32__)
   1.102 +  #undef XMLPUBFUN
   1.103 +  #undef XMLPUBVAR
   1.104 +  #undef XMLCALL
   1.105 +  #if defined(IN_LIBXML) && !defined(LIBXML_STATIC)
   1.106 +    #define XMLPUBFUN __declspec(dllexport)
   1.107 +    #define XMLPUBVAR __declspec(dllexport)
   1.108 +  #else
   1.109 +    #define XMLPUBFUN
   1.110 +    #if !defined(LIBXML_STATIC)
   1.111 +      #define XMLPUBVAR __declspec(dllimport) extern
   1.112 +    #else
   1.113 +      #define XMLPUBVAR extern
   1.114 +    #endif
   1.115 +  #endif
   1.116 +  #define XMLCALL __cdecl
   1.117 +  #if !defined _REENTRANT
   1.118 +    #define _REENTRANT
   1.119 +  #endif
   1.120 +#endif
   1.121 +
   1.122 +/* Cygwin platform, GNU compiler */
   1.123 +#if defined(_WIN32) && defined(__CYGWIN__)
   1.124 +  #undef XMLPUBFUN
   1.125 +  #undef XMLPUBVAR
   1.126 +  #undef XMLCALL
   1.127 +  #if defined(IN_LIBXML) && !defined(LIBXML_STATIC)
   1.128 +    #define XMLPUBFUN __declspec(dllexport)
   1.129 +    #define XMLPUBVAR __declspec(dllexport)
   1.130 +  #else
   1.131 +    #define XMLPUBFUN
   1.132 +    #if !defined(LIBXML_STATIC)
   1.133 +      #define XMLPUBVAR __declspec(dllimport) extern
   1.134 +    #else
   1.135 +      #define XMLPUBVAR
   1.136 +    #endif
   1.137 +  #endif
   1.138 +  #define XMLCALL __cdecl
   1.139 +#endif
   1.140 +
   1.141 +/* Symbian: WINS/WINSCW/WINC/ARMI/ARMv5 */
   1.142 +#if defined(__SYMBIAN32__) && (__ARMCC_VERSION > 230000)
   1.143 +#  define XMLPUBFUN __declspec(dllimport)
   1.144 +#  define XMLPUBVAR __declspec(dllimport) extern
   1.145 +#else
   1.146 +
   1.147 +#  undef  XMLPUBFUN
   1.148 +#ifdef IN_LIBXML
   1.149 +#  define XMLPUBFUN __declspec(dllexport)
   1.150 +#else
   1.151 +#  define XMLPUBFUN __declspec(dllimport)
   1.152 +#endif
   1.153 +
   1.154 +#  undef  XMLPUBVAR
   1.155 +#  if defined(IN_LIBXML) 
   1.156 +#    define XMLPUBVAR __declspec(dllexport) extern
   1.157 +#  else
   1.158 +#    define XMLPUBVAR __declspec(dllimport) extern
   1.159 +#endif
   1.160 +
   1.161 +#endif
   1.162 +
   1.163 +/* Compatibility */
   1.164 +#if !defined(LIBXML_DLL_IMPORT)
   1.165 +#define LIBXML_DLL_IMPORT XMLPUBVAR
   1.166 +#endif
   1.167 +
   1.168 +#endif /* XML_EXPORTS_H */
   1.169 +