aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/glib-2.0/glib-2.0-2.26.1/gatomic-proper-pointer-get-cast.patch
diff options
context:
space:
mode:
authorKlaus Kurzmann <mok@fluxnetz.de>2010-12-04 20:04:14 +0100
committerKlaus Kurzmann <mok@fluxnetz.de>2010-12-04 21:00:16 +0100
commit8ed56c77b914739450bf00394a68dc72cce8818d (patch)
tree2dd25fac366d5c270a83d4d58d395a4fa8f85397 /recipes/glib-2.0/glib-2.0-2.26.1/gatomic-proper-pointer-get-cast.patch
parentf7b3b6a2878f2869cacb1bb21342ee5226dfc904 (diff)
downloadopenembedded-8ed56c77b914739450bf00394a68dc72cce8818d.tar.gz
glib-2.0: add 2.26 with DEFAULT_PREFERENCE = "-1" and prefer it for SHR
Signed-off-by: Klaus Kurzmann <mok@fluxnetz.de>
Diffstat (limited to 'recipes/glib-2.0/glib-2.0-2.26.1/gatomic-proper-pointer-get-cast.patch')
-rw-r--r--recipes/glib-2.0/glib-2.0-2.26.1/gatomic-proper-pointer-get-cast.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/recipes/glib-2.0/glib-2.0-2.26.1/gatomic-proper-pointer-get-cast.patch b/recipes/glib-2.0/glib-2.0-2.26.1/gatomic-proper-pointer-get-cast.patch
new file mode 100644
index 0000000000..5a8e37d53b
--- /dev/null
+++ b/recipes/glib-2.0/glib-2.0-2.26.1/gatomic-proper-pointer-get-cast.patch
@@ -0,0 +1,12 @@
+diff -uri glib-2.26.1.orig/glib/gatomic.h glib-2.26.1/glib/gatomic.h
+--- glib-2.26.1.orig/glib/gatomic.h 2010-07-11 05:56:45.000000000 +0200
++++ glib-2.26.1/glib/gatomic.h 2010-12-01 16:20:33.140009635 +0100
+@@ -70,7 +70,7 @@
+ (g_atomic_int_set) ((volatile gint G_GNUC_MAY_ALIAS *) (volatile void *) (atomic), (newval)))
+ # define g_atomic_pointer_get(atomic) \
+ ((void) sizeof (gchar [sizeof (*(atomic)) == sizeof (gpointer) ? 1 : -1]), \
+- (g_atomic_pointer_get) ((volatile gpointer G_GNUC_MAY_ALIAS *) (volatile void *) (atomic)))
++ (g_atomic_pointer_get) ((volatile gpointer G_GNUC_MAY_ALIAS *) (volatile void G_GNUC_MAY_ALIAS *) (atomic)))
+ # define g_atomic_pointer_set(atomic, newval) \
+ ((void) sizeof (gchar [sizeof (*(atomic)) == sizeof (gpointer) ? 1 : -1]), \
+ (g_atomic_pointer_set) ((volatile gpointer G_GNUC_MAY_ALIAS *) (volatile void *) (atomic), (newval)))