From c35ec66fa46f7c6d9be4ecda0931e2f48e1a945a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Thu, 30 Jan 2020 21:24:17 +0700 Subject: [PATCH] Carla: add patch for gcc 9 --- srcpkgs/Carla/patches/gcc-9.2.0.patch | 29 +++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 srcpkgs/Carla/patches/gcc-9.2.0.patch diff --git a/srcpkgs/Carla/patches/gcc-9.2.0.patch b/srcpkgs/Carla/patches/gcc-9.2.0.patch new file mode 100644 index 00000000000..b20cc9a6852 --- /dev/null +++ b/srcpkgs/Carla/patches/gcc-9.2.0.patch @@ -0,0 +1,29 @@ +--- source/bridges-ui/CarlaBridgeToolkitQt.cpp ++++ source/bridges-ui/CarlaBridgeToolkitQt.cpp +@@ -256,12 +256,6 @@ + #endif + }; + +-#if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)) +-# include "CarlaBridgeToolkitQt5.moc" +-#else +-# include "CarlaBridgeToolkitQt4.moc" +-#endif +- + // ------------------------------------------------------------------------- + + CarlaBridgeToolkit* CarlaBridgeToolkit::createNew(CarlaBridgeFormat* const format) +@@ -279,9 +273,13 @@ + int qInitResources(); + int qCleanupResources(); + ++CARLA_BRIDGE_UI_USE_NAMESPACE ++ + #if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0) ++# include "CarlaBridgeToolkitQt5.moc" + # include "resources.qt5.cpp" + #else ++# include "CarlaBridgeToolkitQt4.moc" + # include "resources.qt4.cpp" + #endif +