cmark_export.h 986 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #ifndef CMARK_EXPORT_H
  2. #define CMARK_EXPORT_H
  3. #ifdef CMARK_STATIC_DEFINE
  4. # define CMARK_EXPORT
  5. # define CMARK_NO_EXPORT
  6. #else
  7. # ifndef CMARK_EXPORT
  8. # ifdef libcmark_EXPORTS
  9. /* We are building this library */
  10. # define CMARK_EXPORT __attribute__((visibility("default")))
  11. # else
  12. /* We are using this library */
  13. # define CMARK_EXPORT __attribute__((visibility("default")))
  14. # endif
  15. # endif
  16. # ifndef CMARK_NO_EXPORT
  17. # define CMARK_NO_EXPORT __attribute__((visibility("hidden")))
  18. # endif
  19. #endif
  20. #ifndef CMARK_DEPRECATED
  21. # define CMARK_DEPRECATED __attribute__ ((__deprecated__))
  22. #endif
  23. #ifndef CMARK_DEPRECATED_EXPORT
  24. # define CMARK_DEPRECATED_EXPORT CMARK_EXPORT CMARK_DEPRECATED
  25. #endif
  26. #ifndef CMARK_DEPRECATED_NO_EXPORT
  27. # define CMARK_DEPRECATED_NO_EXPORT CMARK_NO_EXPORT CMARK_DEPRECATED
  28. #endif
  29. #if 0 /* DEFINE_NO_DEPRECATED */
  30. # ifndef CMARK_NO_DEPRECATED
  31. # define CMARK_NO_DEPRECATED
  32. # endif
  33. #endif
  34. #endif /* CMARK_EXPORT_H */