| @@ -27,4 +27,6 @@ | |||||
| # include "src/DistrhoPluginLV2export.cpp" | # include "src/DistrhoPluginLV2export.cpp" | ||||
| #elif defined(DISTRHO_PLUGIN_TARGET_VST) | #elif defined(DISTRHO_PLUGIN_TARGET_VST) | ||||
| # include "src/DistrhoPluginVST.cpp" | # include "src/DistrhoPluginVST.cpp" | ||||
| #else | |||||
| # error unsupported format | |||||
| #endif | #endif | ||||
| @@ -26,4 +26,6 @@ | |||||
| # include "src/DistrhoUILV2.cpp" | # include "src/DistrhoUILV2.cpp" | ||||
| #elif defined(DISTRHO_PLUGIN_TARGET_VST) | #elif defined(DISTRHO_PLUGIN_TARGET_VST) | ||||
| // nothing | // nothing | ||||
| #else | |||||
| # error unsupported format | |||||
| #endif | #endif | ||||
| @@ -28,15 +28,15 @@ | |||||
| /* Check OS */ | /* Check OS */ | ||||
| #if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) | #if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) | ||||
| # define DISTRHO_PLUGIN_EXPORT extern "C" __declspec (dllexport) | # define DISTRHO_PLUGIN_EXPORT extern "C" __declspec (dllexport) | ||||
| # define DISTRHO_OS_WINDOWS 1 | |||||
| # define DISTRHO_OS_WINDOWS 1 | |||||
| # define DISTRHO_DLL_EXTENSION "dll" | # define DISTRHO_DLL_EXTENSION "dll" | ||||
| #else | #else | ||||
| # define DISTRHO_PLUGIN_EXPORT extern "C" __attribute__ ((visibility("default"))) | # define DISTRHO_PLUGIN_EXPORT extern "C" __attribute__ ((visibility("default"))) | ||||
| # if defined(__APPLE__) | # if defined(__APPLE__) | ||||
| # define DISTRHO_OS_MAC 1 | |||||
| # define DISTRHO_OS_MAC 1 | |||||
| # define DISTRHO_DLL_EXTENSION "dylib" | # define DISTRHO_DLL_EXTENSION "dylib" | ||||
| # elif defined(__HAIKU__) | # elif defined(__HAIKU__) | ||||
| # define DISTRHO_OS_HAIKU 1 | |||||
| # define DISTRHO_OS_HAIKU 1 | |||||
| # elif defined(__linux__) || defined(__linux) | # elif defined(__linux__) || defined(__linux) | ||||
| # define DISTRHO_OS_LINUX 1 | # define DISTRHO_OS_LINUX 1 | ||||
| # endif | # endif | ||||
| @@ -434,9 +434,9 @@ public: | |||||
| return glWindow.handlePluginKeyboard(press, key); | return glWindow.handlePluginKeyboard(press, key); | ||||
| } | } | ||||
| #else | #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 | #endif | ||||
| // ------------------------------------------------------------------- | // ------------------------------------------------------------------- | ||||