void-packages/srcpkgs/Carla/patches/gcc-9.2.0.patch
Đoàn Trần Công Danh f6fcc31847 Carla: add patch for gcc 9
Bump revision to trigger rebuild for platform that were cross-compiled.
2020-02-06 21:12:56 +01:00

29 lines
742 B
Diff

--- 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