diff --git a/source/backend/CarlaStandalone.cpp b/source/backend/CarlaStandalone.cpp index 72ff5e778..c3f2ed6af 100644 --- a/source/backend/CarlaStandalone.cpp +++ b/source/backend/CarlaStandalone.cpp @@ -1,6 +1,6 @@ /* * Carla Standalone - * Copyright (C) 2011-2017 Filipe Coelho + * Copyright (C) 2011-2018 Filipe Coelho * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as @@ -1998,6 +1998,7 @@ const char* carla_get_host_osc_url_udp() // ------------------------------------------------------------------------------------------------------------------- +#define CARLA_PLUGIN_UI_CLASS_PREFIX Standalone #include "CarlaPluginUI.cpp" #include "CarlaDssiUtils.cpp" #include "CarlaPatchbayUtils.cpp" diff --git a/source/backend/engine/CarlaEngineNative.cpp b/source/backend/engine/CarlaEngineNative.cpp index 1766a2ca9..52f837bf3 100644 --- a/source/backend/engine/CarlaEngineNative.cpp +++ b/source/backend/engine/CarlaEngineNative.cpp @@ -1,6 +1,6 @@ /* * Carla Plugin Host - * Copyright (C) 2011-2017 Filipe Coelho + * Copyright (C) 2011-2018 Filipe Coelho * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as @@ -2323,6 +2323,7 @@ const EngineDriverDeviceInfo* CarlaEngine::getRtAudioDeviceInfo(const uint, cons CARLA_BACKEND_END_NAMESPACE +#define CARLA_PLUGIN_UI_CLASS_PREFIX EngineNative #include "CarlaHostCommon.cpp" #include "CarlaPluginUI.cpp" #include "CarlaDssiUtils.cpp" diff --git a/source/bridges-ui/CarlaBridgeToolkitNative.cpp b/source/bridges-ui/CarlaBridgeToolkitNative.cpp index 280a2e190..cbd859919 100644 --- a/source/bridges-ui/CarlaBridgeToolkitNative.cpp +++ b/source/bridges-ui/CarlaBridgeToolkitNative.cpp @@ -1,6 +1,6 @@ /* * Carla Bridge UI - * Copyright (C) 2014-2017 Filipe Coelho + * Copyright (C) 2014-2018 Filipe Coelho * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as @@ -224,6 +224,7 @@ CarlaBridgeToolkit* CarlaBridgeToolkit::createNew(CarlaBridgeFormat* const forma CARLA_BRIDGE_UI_END_NAMESPACE +#define CARLA_PLUGIN_UI_CLASS_PREFIX ToolkitNative #include "CarlaPluginUI.cpp" // ------------------------------------------------------------------------- diff --git a/source/utils/CarlaPluginUI.cpp b/source/utils/CarlaPluginUI.cpp index 970b53f01..d3c6fc697 100644 --- a/source/utils/CarlaPluginUI.cpp +++ b/source/utils/CarlaPluginUI.cpp @@ -1,6 +1,6 @@ /* * Carla Plugin UI - * Copyright (C) 2014-2017 Filipe Coelho + * Copyright (C) 2014-2018 Filipe Coelho * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as @@ -33,6 +33,10 @@ # include #endif +#ifndef CARLA_PLUGIN_UI_CLASS_PREFIX +# error CARLA_PLUGIN_UI_CLASS_PREFIX undefined +#endif + // --------------------------------------------------------------------------------------------------------------------- // X11 @@ -359,6 +363,12 @@ private: #ifdef CARLA_OS_MAC +#ifdef BUILD_BRIDGE +# define CarlaPluginWindow CarlaPluginWindowBridged ## CARLA_PLUGIN_UI_CLASS_PREFIX ## CARLA_VERSION_HEX +#else +# define CarlaPluginWindow CarlaPluginWindow ## CARLA_PLUGIN_UI_CLASS_PREFIX ## CARLA_VERSION_HEX +#endif + @interface CarlaPluginWindow : NSWindow { @public