blob: 50cb3c470eb978137d27b05c8c86a4d270a3cd83 [file] [log] [blame]
Andrew Geissler95ac1b82021-03-31 14:34:31 -05001From 8a87069ff42a0631dce153701cb2ec5e343a958c Mon Sep 17 00:00:00 2001
2From: Philip Withnall <pwithnall@endlessos.org>
3Date: Wed, 11 Nov 2020 19:16:30 +0000
4Subject: [PATCH 18/29] gtypes: Drop volatile qualifier from gatomicrefcount
5
6This is technically an API break, but since the type is meant to be
7opaque (third party code is not meant to treat it like an integer) it
8should not cause problems.
9
10Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
11
12Helps: #600
13Upstream-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
18diff --git a/glib/gtypes.h b/glib/gtypes.h
19index 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--
342.30.1
35