Audio plugin host https://kx.studio/carla
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
997B

  1. #pragma once
  2. // Define CLAP_EXPORT
  3. #if !defined(CLAP_EXPORT)
  4. # if defined _WIN32 || defined __CYGWIN__
  5. # ifdef __GNUC__
  6. # define CLAP_EXPORT __attribute__((dllexport))
  7. # else
  8. # define CLAP_EXPORT __declspec(dllexport)
  9. # endif
  10. # else
  11. # if __GNUC__ >= 4 || defined(__clang__)
  12. # define CLAP_EXPORT __attribute__((visibility("default")))
  13. # else
  14. # define CLAP_EXPORT
  15. # endif
  16. # endif
  17. #endif
  18. #if !defined(CLAP_ABI)
  19. # if defined _WIN32 || defined __CYGWIN__
  20. # define CLAP_ABI __cdecl
  21. # else
  22. # define CLAP_ABI
  23. # endif
  24. #endif
  25. #if defined(__cplusplus) && __cplusplus >= 201103L
  26. # define CLAP_HAS_CXX11
  27. # define CLAP_CONSTEXPR constexpr
  28. #else
  29. # define CLAP_CONSTEXPR
  30. #endif
  31. #if defined(__cplusplus) && __cplusplus >= 201703L
  32. # define CLAP_HAS_CXX17
  33. # define CLAP_NODISCARD [[nodiscard]]
  34. #else
  35. # define CLAP_NODISCARD
  36. #endif
  37. #if defined(__cplusplus) && __cplusplus >= 202002L
  38. # define CLAP_HAS_CXX20
  39. #endif