From 7418c12a5b08d7c8b2c4a9dc9f909d0552c85ae2 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Fri, 17 Jan 2014 16:10:03 +0100 Subject: [PATCH] override -fvisibility=hidden for the LV2plugin descriptor --- libs/plugins/reasonablesynth.lv2/lv2.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libs/plugins/reasonablesynth.lv2/lv2.c b/libs/plugins/reasonablesynth.lv2/lv2.c index 6b9c81d8dd..586ca54c86 100644 --- a/libs/plugins/reasonablesynth.lv2/lv2.c +++ b/libs/plugins/reasonablesynth.lv2/lv2.c @@ -199,7 +199,11 @@ static const LV2_Descriptor descriptor = { extension_data }; -LV2_SYMBOL_EXPORT +#if defined(COMPILER_MSVC) +__declspec(dllexport) +#else +__attribute__ ((visibility ("default"))) +#endif const LV2_Descriptor* lv2_descriptor(uint32_t idx) {