From 20477b35dd76527e85fc7ac476c07ed8d521f8a3 Mon Sep 17 00:00:00 2001 From: falkTX Date: Mon, 7 Mar 2022 20:58:37 +0000 Subject: [PATCH] Add DISTRHO_API macro, unused for now Signed-off-by: falkTX --- dgl/Application.hpp | 2 +- dgl/Window.hpp | 2 +- distrho/src/DistrhoDefines.h | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) 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