ncnn_export.h 846 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #ifndef NCNN_EXPORT_H
  2. #define NCNN_EXPORT_H
  3. #ifdef NCNN_STATIC_DEFINE
  4. # define NCNN_EXPORT
  5. # define NCNN_NO_EXPORT
  6. #else
  7. # ifndef NCNN_EXPORT
  8. # ifdef ncnn_EXPORTS
  9. /* We are building this library */
  10. # define NCNN_EXPORT
  11. # else
  12. /* We are using this library */
  13. # define NCNN_EXPORT
  14. # endif
  15. # endif
  16. # ifndef NCNN_NO_EXPORT
  17. # define NCNN_NO_EXPORT
  18. # endif
  19. #endif
  20. #ifndef NCNN_DEPRECATED
  21. # define NCNN_DEPRECATED __attribute__ ((__deprecated__))
  22. #endif
  23. #ifndef NCNN_DEPRECATED_EXPORT
  24. # define NCNN_DEPRECATED_EXPORT NCNN_EXPORT NCNN_DEPRECATED
  25. #endif
  26. #ifndef NCNN_DEPRECATED_NO_EXPORT
  27. # define NCNN_DEPRECATED_NO_EXPORT NCNN_NO_EXPORT NCNN_DEPRECATED
  28. #endif
  29. #if 0 /* DEFINE_NO_DEPRECATED */
  30. # ifndef NCNN_NO_DEPRECATED
  31. # define NCNN_NO_DEPRECATED
  32. # endif
  33. #endif
  34. #endif /* NCNN_EXPORT_H */