diff --git a/dgl/Application.hpp b/dgl/Application.hpp index 1024e226..28404e39 100644 --- a/dgl/Application.hpp +++ b/dgl/Application.hpp @@ -33,7 +33,7 @@ START_NAMESPACE_DGL Unless stated otherwise, functions within this class are not thread-safe. */ -class Application +class DISTRHO_API Application { public: /** diff --git a/dgl/Window.hpp b/dgl/Window.hpp index 3de57e86..35054562 100644 --- a/dgl/Window.hpp +++ b/dgl/Window.hpp @@ -52,7 +52,7 @@ class TopLevelWidget; ... */ -class Window +class DISTRHO_API Window { struct PrivateData; diff --git a/distrho/src/DistrhoDefines.h b/distrho/src/DistrhoDefines.h index 32499a62..929593c2 100644 --- a/distrho/src/DistrhoDefines.h +++ b/distrho/src/DistrhoDefines.h @@ -27,10 +27,12 @@ /* Check OS */ #if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) +# define DISTRHO_API # define DISTRHO_PLUGIN_EXPORT extern "C" __declspec (dllexport) # define DISTRHO_OS_WINDOWS 1 # define DISTRHO_DLL_EXTENSION "dll" #else +# define DISTRHO_API # define DISTRHO_PLUGIN_EXPORT extern "C" __attribute__ ((visibility("default"))) # if defined(__APPLE__) # define DISTRHO_OS_MAC 1