rtl-sdr_export.h 649 B

123456789101112131415161718192021222324252627282930
  1. #ifndef RTLSDR_EXPORT_H
  2. #define RTLSDR_EXPORT_H
  3. #if defined __GNUC__
  4. # if __GNUC__ >= 4
  5. # define __SDR_EXPORT __attribute__((visibility("default")))
  6. # define __SDR_IMPORT __attribute__((visibility("default")))
  7. # else
  8. # define __SDR_EXPORT
  9. # define __SDR_IMPORT
  10. # endif
  11. #elif _MSC_VER
  12. # define __SDR_EXPORT __declspec(dllexport)
  13. # define __SDR_IMPORT __declspec(dllimport)
  14. #else
  15. # define __SDR_EXPORT
  16. # define __SDR_IMPORT
  17. #endif
  18. #ifndef rtlsdr_STATIC
  19. # ifdef rtlsdr_EXPORTS
  20. # define RTLSDR_API __SDR_EXPORT
  21. # else
  22. # define RTLSDR_API __SDR_IMPORT
  23. # endif
  24. #else
  25. #define RTLSDR_API
  26. #endif
  27. #endif /* RTLSDR_EXPORT_H */