in plugininterfaces, ivstcomponent.h defines GetPluginFactory() with EXPORT_FACTORY
EXPORT_FACTORY IPluginFactory* PLUGIN_API GetPluginFactory ()
but ipluginbase.h declares this without it
Steinberg::IPluginFactory* PLUGIN_API GetPluginFactory ();
EXPORT_FACTORY however is defined much “later” in public.sdk in pluginfactory.h as
#if defined(GNUC) && ((GNUC >= 4) || ((GNUC == 3) && (GNUC_MINOR >= 1)))
#define EXPORT_FACTORY attribute ((visibility (“default”)))
This is a problem because in our implementation we would like to skip the Windows .def file by using
#define EXPORT_FACTORY __declspec(dllexport)
This is has been supported since at least VS2010 and would mirror the Mac implementation, but it fails to build with the current SDK due to the above inconsistency.
Would it be possible for the SDK to (preferably) adopt that __declspec(dllexport), or else to consistently use EXPORT_FACTORY in plugininterfaces so that we can just define it?
PS: the latter requires additional #ifndef EXPORT_FACTORY define EXPORT_FACTORY #endif
PSS: we’re not including/using pluginfactory.h