mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-24 03:02:10 +01:00
grefcount: add missing gatomic.h
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>
This commit is contained in:
parent
2374974c0b
commit
ea32b828e3
@ -23,6 +23,7 @@
|
|||||||
#error "Only <glib.h> can be included directly."
|
#error "Only <glib.h> can be included directly."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <glib/gatomic.h>
|
||||||
#include <glib/gtypes.h>
|
#include <glib/gtypes.h>
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
Loading…
x
Reference in New Issue
Block a user