xmlexports.h 992 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. #ifndef __XML_EXPORTS_H__
  8. #define __XML_EXPORTS_H__
  9. /** DOC_DISABLE */
  10. #if defined(_WIN32) || defined(__CYGWIN__)
  11. #ifdef LIBXML_STATIC
  12. #define XMLPUBLIC
  13. #elif defined(IN_LIBXML)
  14. #define XMLPUBLIC __declspec(dllexport)
  15. #else
  16. #define XMLPUBLIC __declspec(dllimport)
  17. #endif
  18. #else /* not Windows */
  19. #define XMLPUBLIC
  20. #endif /* platform switch */
  21. /** DOC_ENABLE */
  22. /*
  23. * XMLPUBFUN:
  24. *
  25. * Macro which declares an exportable function
  26. */
  27. #define XMLPUBFUN XMLPUBLIC
  28. /**
  29. * XMLPUBVAR:
  30. *
  31. * Macro which declares an exportable variable
  32. */
  33. #define XMLPUBVAR XMLPUBLIC extern
  34. /** DOC_DISABLE */
  35. /* Compatibility */
  36. #define XMLCALL
  37. #define XMLCDECL
  38. #if !defined(LIBXML_DLL_IMPORT)
  39. #define LIBXML_DLL_IMPORT XMLPUBVAR
  40. #endif
  41. /** DOC_ENABLE */
  42. #endif /* __XML_EXPORTS_H__ */