From 903313aace568666cce8d85f8c363429917a5026 Mon Sep 17 00:00:00 2001 From: falkTX Date: Sat, 22 Sep 2018 22:03:05 +0200 Subject: [PATCH] Update distrho --- source/modules/distrho/DistrhoPluginMain.cpp | 2 ++ source/modules/distrho/DistrhoUIMain.cpp | 2 ++ source/modules/distrho/src/DistrhoDefines.h | 6 +++--- source/modules/distrho/src/DistrhoUIInternal.hpp | 6 +++--- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/source/modules/distrho/DistrhoPluginMain.cpp b/source/modules/distrho/DistrhoPluginMain.cpp index d4dd13ff9..ede06a44f 100644 --- a/source/modules/distrho/DistrhoPluginMain.cpp +++ b/source/modules/distrho/DistrhoPluginMain.cpp @@ -27,4 +27,6 @@ # include "src/DistrhoPluginLV2export.cpp" #elif defined(DISTRHO_PLUGIN_TARGET_VST) # include "src/DistrhoPluginVST.cpp" +#else +# error unsupported format #endif diff --git a/source/modules/distrho/DistrhoUIMain.cpp b/source/modules/distrho/DistrhoUIMain.cpp index bd9454d60..f5c95db86 100644 --- a/source/modules/distrho/DistrhoUIMain.cpp +++ b/source/modules/distrho/DistrhoUIMain.cpp @@ -26,4 +26,6 @@ # include "src/DistrhoUILV2.cpp" #elif defined(DISTRHO_PLUGIN_TARGET_VST) // nothing +#else +# error unsupported format #endif diff --git a/source/modules/distrho/src/DistrhoDefines.h b/source/modules/distrho/src/DistrhoDefines.h index 16c069444..c14cfb8a2 100644 --- a/source/modules/distrho/src/DistrhoDefines.h +++ b/source/modules/distrho/src/DistrhoDefines.h @@ -28,15 +28,15 @@ /* Check OS */ #if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) # define DISTRHO_PLUGIN_EXPORT extern "C" __declspec (dllexport) -# define DISTRHO_OS_WINDOWS 1 +# define DISTRHO_OS_WINDOWS 1 # define DISTRHO_DLL_EXTENSION "dll" #else # define DISTRHO_PLUGIN_EXPORT extern "C" __attribute__ ((visibility("default"))) # if defined(__APPLE__) -# define DISTRHO_OS_MAC 1 +# define DISTRHO_OS_MAC 1 # define DISTRHO_DLL_EXTENSION "dylib" # elif defined(__HAIKU__) -# define DISTRHO_OS_HAIKU 1 +# define DISTRHO_OS_HAIKU 1 # elif defined(__linux__) || defined(__linux) # define DISTRHO_OS_LINUX 1 # endif diff --git a/source/modules/distrho/src/DistrhoUIInternal.hpp b/source/modules/distrho/src/DistrhoUIInternal.hpp index bcd4c042f..8a045a93e 100644 --- a/source/modules/distrho/src/DistrhoUIInternal.hpp +++ b/source/modules/distrho/src/DistrhoUIInternal.hpp @@ -434,9 +434,9 @@ public: return glWindow.handlePluginKeyboard(press, key); } #else - void setWindowSize(const uint width, const uint height, const bool updateUI = false) {} - void setWindowTransientWinId(const uintptr_t winId) {} - bool setWindowVisible(const bool yesNo) { return true; } + void setWindowSize(const uint, const uint, const bool) {} + void setWindowTransientWinId(const uintptr_t) {} + bool setWindowVisible(const bool) { return true; } #endif // -------------------------------------------------------------------