Ticket #211: xmlexports.h.diff

File xmlexports.h.diff, 810 bytes (added by dryeo, 5 years ago)
  • xmlexports.h

    old new  
    152152  #define XMLCDECL __cdecl
    153153#endif
    154154
     155/* OS/2 with the OpenWatcom compiler */
     156#if defined(__OS2__) && defined(__WATCOMC__)
     157  #undef XMLPUBFUN
     158  #undef XMLPUBVAR
     159  #undef XMLCALL
     160  #undef XMLCDECL
     161  #if defined(IN_LIBXML) && !defined(LIBXML_STATIC)
     162    #define XMLPUBFUN __declspec(dllexport)
     163    #define XMLPUBVAR __declspec(dllexport)
     164  #else
     165    #define XMLPUBFUN
     166    #if !defined(LIBXML_STATIC)
     167      #define XMLPUBVAR __declspec(dllimport) extern
     168    #else
     169      #define XMLPUBVAR
     170    #endif
     171  #endif
     172  #define XMLCALL __cdecl
     173  #define XMLCDECL __cdecl
     174#endif
     175
    155176/* Compatibility */
    156177#if !defined(LIBXML_DLL_IMPORT)
    157178#define LIBXML_DLL_IMPORT XMLPUBVAR