wok-next annotate glib/stuff/patches/grefcount.patch @ rev 21071
Update atkmm, cairo, cmake, db, elfutils, emacs, glib, glib-networking, glibmm, gobject-introspection, libsigc++, meson, openssl, zstd
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Dec 13 00:46:54 2018 +0200 (2018-12-13) |
parents | |
children |
rev | line source |
---|---|
al@21071 | 1 From 57efb14f0519e0b20a789c274db7777f16c98b35 Mon Sep 17 00:00:00 2001 |
al@21071 | 2 From: Fabrice Fontaine <fontaine.fabrice@gmail.com> |
al@21071 | 3 Date: Sat, 13 Oct 2018 23:10:33 +0200 |
al@21071 | 4 Subject: [PATCH] grefcount: add missing gatomic.h |
al@21071 | 5 MIME-Version: 1.0 |
al@21071 | 6 Content-Type: text/plain; charset=UTF-8 |
al@21071 | 7 Content-Transfer-Encoding: 8bit |
al@21071 | 8 |
al@21071 | 9 Without gatomic.h, build fails on: |
al@21071 | 10 In file included from garcbox.c:24:0: |
al@21071 | 11 garcbox.c: In function ‘g_atomic_rc_box_acquire’: |
al@21071 | 12 grefcount.h:101:13: error: implicit declaration of function ‘g_atomic_int_get’; did you mean ‘__atomic_store’? [-Werror=implicit-function-declaration] |
al@21071 | 13 (void) (g_atomic_int_get (rc) == G_MAXINT ? 0 : g_atomic_int_inc ((rc))); \ |
al@21071 | 14 ^ |
al@21071 | 15 garcbox.c:292:3: note: in expansion of macro ‘g_atomic_ref_count_inc’ |
al@21071 | 16 g_atomic_ref_count_inc (&real_box->ref_count); |
al@21071 | 17 |
al@21071 | 18 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> |
al@21071 | 19 --- |
al@21071 | 20 glib/grefcount.h | 1 + |
al@21071 | 21 1 file changed, 1 insertion(+) |
al@21071 | 22 |
al@21071 | 23 diff --git a/glib/grefcount.h b/glib/grefcount.h |
al@21071 | 24 index dec9a5ffb..b6eced1b7 100644 |
al@21071 | 25 --- a/glib/grefcount.h |
al@21071 | 26 +++ b/glib/grefcount.h |
al@21071 | 27 @@ -23,6 +23,7 @@ |
al@21071 | 28 #error "Only <glib.h> can be included directly." |
al@21071 | 29 #endif |
al@21071 | 30 |
al@21071 | 31 +#include <glib/gatomic.h> |
al@21071 | 32 #include <glib/gtypes.h> |
al@21071 | 33 |
al@21071 | 34 G_BEGIN_DECLS |
al@21071 | 35 -- |
al@21071 | 36 2.18.1 |