diff options
Diffstat (limited to 'meta/recipes-core/glib-2.0/glib-2.0/0018-gtypes-Drop-volatile-qualifier-from-gatomicrefcount.patch')
-rw-r--r-- | meta/recipes-core/glib-2.0/glib-2.0/0018-gtypes-Drop-volatile-qualifier-from-gatomicrefcount.patch | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/meta/recipes-core/glib-2.0/glib-2.0/0018-gtypes-Drop-volatile-qualifier-from-gatomicrefcount.patch b/meta/recipes-core/glib-2.0/glib-2.0/0018-gtypes-Drop-volatile-qualifier-from-gatomicrefcount.patch deleted file mode 100644 index 50cb3c470e..0000000000 --- a/meta/recipes-core/glib-2.0/glib-2.0/0018-gtypes-Drop-volatile-qualifier-from-gatomicrefcount.patch +++ /dev/null | |||
@@ -1,35 +0,0 @@ | |||
1 | From 8a87069ff42a0631dce153701cb2ec5e343a958c Mon Sep 17 00:00:00 2001 | ||
2 | From: Philip Withnall <pwithnall@endlessos.org> | ||
3 | Date: Wed, 11 Nov 2020 19:16:30 +0000 | ||
4 | Subject: [PATCH 18/29] gtypes: Drop volatile qualifier from gatomicrefcount | ||
5 | |||
6 | This is technically an API break, but since the type is meant to be | ||
7 | opaque (third party code is not meant to treat it like an integer) it | ||
8 | should not cause problems. | ||
9 | |||
10 | Signed-off-by: Philip Withnall <pwithnall@endlessos.org> | ||
11 | |||
12 | Helps: #600 | ||
13 | Upstream-Status: Backport [https://gitlab.gnome.org/GNOME/glib/-/merge_requests/1719] | ||
14 | --- | ||
15 | glib/gtypes.h | 4 ++-- | ||
16 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
17 | |||
18 | diff --git a/glib/gtypes.h b/glib/gtypes.h | ||
19 | index 23c5a1295..2c4825582 100644 | ||
20 | --- a/glib/gtypes.h | ||
21 | +++ b/glib/gtypes.h | ||
22 | @@ -550,8 +550,8 @@ struct _GTimeVal | ||
23 | glong tv_usec; | ||
24 | } GLIB_DEPRECATED_TYPE_IN_2_62_FOR(GDateTime); | ||
25 | |||
26 | -typedef gint grefcount; | ||
27 | -typedef volatile gint gatomicrefcount; | ||
28 | +typedef gint grefcount; | ||
29 | +typedef gint gatomicrefcount; /* should be accessed only using atomics */ | ||
30 | |||
31 | G_END_DECLS | ||
32 | |||
33 | -- | ||
34 | 2.30.1 | ||
35 | |||