summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabrice Fontaine <fontaine.fabrice@gmail.com>2018-10-13 23:10:33 +0200
committerMichael Catanzaro <mcatanzaro@redhat.com>2023-01-03 12:15:14 -0600
commitea32b828e3c9d345bcc31028929602039b1d801a (patch)
treed12647165d2ba9412b3cbbce930ca7a548b6d3d0
parent2374974c0be70cc80d27184dba55cad666415d9f (diff)
downloadglib-ea32b828e3c9d345bcc31028929602039b1d801a.tar.gz
grefcount: add missing gatomic.hmcatanzaro/glib-2-56-rhel8
Without gatomic.h, build fails on: In file included from garcbox.c:24:0: garcbox.c: In function ‘g_atomic_rc_box_acquire’: grefcount.h:101:13: error: implicit declaration of function ‘g_atomic_int_get’; did you mean ‘__atomic_store’? [-Werror=implicit-function-declaration] (void) (g_atomic_int_get (rc) == G_MAXINT ? 0 : g_atomic_int_inc ((rc))); \ ^ garcbox.c:292:3: note: in expansion of macro ‘g_atomic_ref_count_inc’ g_atomic_ref_count_inc (&real_box->ref_count); Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
-rw-r--r--glib/grefcount.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/glib/grefcount.h b/glib/grefcount.h
index dfeed619f..b1c70b5aa 100644
--- a/glib/grefcount.h
+++ b/glib/grefcount.h
@@ -23,6 +23,7 @@
#error "Only <glib.h> can be included directly."
#endif
+#include <glib/gatomic.h>
#include <glib/gtypes.h>
G_BEGIN_DECLS