Cross-Platform build scripts for audio plugins
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.

16 lines
578B

  1. diff --git a/include/lv2/core/lv2.h b/include/lv2/core/lv2.h
  2. index 84c40a5..6e22dc6 100644
  3. --- a/include/lv2/core/lv2.h
  4. +++ b/include/lv2/core/lv2.h
  5. @@ -366,7 +371,9 @@ typedef struct LV2_Descriptor {
  6. Put this (LV2_SYMBOL_EXPORT) before any functions that are to be loaded
  7. by the host as a symbol from the dynamic library.
  8. */
  9. -#ifdef _WIN32
  10. +#if defined(__EMSCRIPTEN__)
  11. +# define LV2_SYMBOL_EXPORT LV2_SYMBOL_EXTERN __attribute__((used))
  12. +#elif defined(_WIN32)
  13. # define LV2_SYMBOL_EXPORT LV2_SYMBOL_EXTERN __declspec(dllexport)
  14. #else
  15. # define LV2_SYMBOL_EXPORT \