summaryrefslogtreecommitdiff
path: root/skip/guitarix/guitarix-0.43.1-glib2.patch
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2023-02-02 14:10:02 +0000
committerdavidovski <david@davidovski.xyz>2023-02-02 14:10:02 +0000
commitf29d569cd33a73da5ad675f43a34ad53c5cc9bc6 (patch)
tree76fe6267f8307e7630fc6f53ff99a9767ad40de0 /skip/guitarix/guitarix-0.43.1-glib2.patch
parent05d004dfe0c9a9d898fac8a4a0292ca2a74ca391 (diff)
Work
Diffstat (limited to 'skip/guitarix/guitarix-0.43.1-glib2.patch')
-rw-r--r--skip/guitarix/guitarix-0.43.1-glib2.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/skip/guitarix/guitarix-0.43.1-glib2.patch b/skip/guitarix/guitarix-0.43.1-glib2.patch
new file mode 100644
index 0000000..41ae018
--- /dev/null
+++ b/skip/guitarix/guitarix-0.43.1-glib2.patch
@@ -0,0 +1,15 @@
+diff -ruN a/src/headers/gx_system.h b/src/headers/gx_system.h
+--- a/src/headers/gx_system.h 2021-12-10 18:53:33.000000000 +0100
++++ b/src/headers/gx_system.h 2022-04-28 11:23:16.176694581 +0200
+@@ -112,7 +112,11 @@
+ }
+
+ inline bool atomic_compare_and_exchange(volatile int *p, int oldv, int newv) {
++#if (GLIB_MAJOR_VERSION == 2 && GLIB_MINOR_VERSION < 68 && GLIB_MICRO_VERSION < 1)
+ return g_atomic_int_compare_and_exchange(p, oldv, newv);
++#else
++ return g_atomic_int_compare_and_exchange(const_cast<int*>(p), oldv, newv);
++#endif
+ }
+
+ template <class T>