DPF

DISTRHO Plugin Framework
Log | Files | Refs | Submodules | README | LICENSE

commit 20477b35dd76527e85fc7ac476c07ed8d521f8a3
parent 4cc6973d5defdbb45f89b1bf694277ee49a75c2a
Author: falkTX <falktx@falktx.com>
Date:   Mon,  7 Mar 2022 20:58:10 +0000

Add DISTRHO_API macro, unused for now

Signed-off-by: falkTX <falktx@falktx.com>

Diffstat:
Mdgl/Application.hpp | 2+-
Mdgl/Window.hpp | 2+-
Mdistrho/src/DistrhoDefines.h | 2++
3 files changed, 4 insertions(+), 2 deletions(-)

diff --git 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 @@ -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 @@ -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