From caaf8ea39ccb5dd9f47621dae84c7fc57e78fcca Mon Sep 17 00:00:00 2001 From: Jean Pierre Cimalando Date: Mon, 24 May 2021 19:49:24 +0200 Subject: [PATCH] msvc: mark the dssi descriptor as dllexport --- distrho/src/dssi/dssi.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/distrho/src/dssi/dssi.h b/distrho/src/dssi/dssi.h index ce36e186..26f22290 100644 --- a/distrho/src/dssi/dssi.h +++ b/distrho/src/dssi/dssi.h @@ -35,6 +35,10 @@ extern "C" { #endif +#ifndef DSSI_PLUGIN_EXPORT +# define DSSI_PLUGIN_EXPORT LADSPA_PLUGIN_EXPORT +#endif + /* There is a need for an API that supports hosted MIDI soft synths with GUIs in Linux audio applications. In time the GMPI initiative @@ -411,7 +415,7 @@ typedef struct _DSSI_Descriptor { * of a distinct plugin type. */ -const DSSI_Descriptor *dssi_descriptor(unsigned long Index); +DSSI_PLUGIN_EXPORT const DSSI_Descriptor *dssi_descriptor(unsigned long Index); typedef const DSSI_Descriptor *(*DSSI_Descriptor_Function)(unsigned long Index);