archrelease: copy trunk to community-any
[ArchLinux/community.git] / guitarix / trunk / guitarix-0.43.1-glib2.patch
blob41ae01821cced17adbfc505e1fb4ad3f8dcdcb31
1 diff -ruN a/src/headers/gx_system.h b/src/headers/gx_system.h
2 --- a/src/headers/gx_system.h 2021-12-10 18:53:33.000000000 +0100
3 +++ b/src/headers/gx_system.h 2022-04-28 11:23:16.176694581 +0200
4 @@ -112,7 +112,11 @@
7 inline bool atomic_compare_and_exchange(volatile int *p, int oldv, int newv) {
8 +#if (GLIB_MAJOR_VERSION == 2 && GLIB_MINOR_VERSION < 68 && GLIB_MICRO_VERSION < 1)
9 return g_atomic_int_compare_and_exchange(p, oldv, newv);
10 +#else
11 + return g_atomic_int_compare_and_exchange(const_cast<int*>(p), oldv, newv);
12 +#endif
15 template <class T>