move DLL decl to the logical place, clang x86 fix

This commit is contained in:
Connor Olding 2013-11-10 12:42:27 -08:00
parent 26255d3c87
commit c46936ce48
2 changed files with 7 additions and 6 deletions

View file

@ -1,8 +1,3 @@
#ifdef WIN32
__declspec(dllexport) const LADSPA_Descriptor *
ladspa_descriptor(unsigned long Index);
#endif
#ifndef M_PI
#define M_PI 3.14159265358979323846264338327
#endif

View file

@ -107,10 +107,16 @@ typedef struct _LADSPA_Descriptor {
void (*deactivate)(LADSPA_Handle Instance);
void (*cleanup)(LADSPA_Handle Instance);
} LADSPA_Descriptor;
#ifdef WIN32
// weird clang bug workaround
#if (__clang__ != 1) || (_X86_ != 1)
__declspec(dllexport)
#endif
#endif
const LADSPA_Descriptor * ladspa_descriptor(unsigned long Index);
typedef const LADSPA_Descriptor *
(*LADSPA_Descriptor_Function)(unsigned long Index);
#ifdef __cplusplus
}
#endif
#endif
#endif