aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-12-10 09:18:12 -0500
committerDavid Robillard <d@drobilla.net>2022-12-10 09:18:12 -0500
commitb55e0478a50b056f536b73662d8173feb9e77afd (patch)
tree6882ab647922de83c8b47dae367bafea807b8a1d /include
parent8726bffa337e6374b04d0739df2812798b2c8858 (diff)
downloadlv2-b55e0478a50b056f536b73662d8173feb9e77afd.tar.xz
Allow LV2_SYMBOL_EXPORT to be overridden
Diffstat (limited to 'include')
-rw-r--r--include/lv2/core/lv2.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/include/lv2/core/lv2.h b/include/lv2/core/lv2.h
index 06adea0..22ed02f 100644
--- a/include/lv2/core/lv2.h
+++ b/include/lv2/core/lv2.h
@@ -351,11 +351,13 @@ typedef struct LV2_Descriptor {
Put this (LV2_SYMBOL_EXPORT) before any functions that are to be loaded
by the host as a symbol from the dynamic library.
*/
-#ifdef _WIN32
-# define LV2_SYMBOL_EXPORT LV2_SYMBOL_EXTERN __declspec(dllexport)
-#else
-# define LV2_SYMBOL_EXPORT \
- LV2_SYMBOL_EXTERN __attribute__((visibility("default")))
+#ifndef LV2_SYMBOL_EXPORT
+# ifdef _WIN32
+# define LV2_SYMBOL_EXPORT LV2_SYMBOL_EXTERN __declspec(dllexport)
+# else
+# define LV2_SYMBOL_EXPORT \
+ LV2_SYMBOL_EXTERN __attribute__((visibility("default")))
+# endif
#endif
/**