summaryrefslogtreecommitdiff
path: root/recipes/glib-2.0/glib-2.0-2.24.0/gatomic-proper-pointer-get-cast.patch
diff options
context:
space:
mode:
authorKlaus Kurzmann <mok@fluxnetz.de>2010-04-03 18:50:45 +0200
committerKlaus Kurzmann <mok@fluxnetz.de>2010-04-03 18:50:45 +0200
commit82b51b6abd7b43ae6fa1c7d01b780d0c99d22804 (patch)
treeb1455904c992c92a18dc5f48253d0f37c4ff7590 /recipes/glib-2.0/glib-2.0-2.24.0/gatomic-proper-pointer-get-cast.patch
parent5eef2a8892b12b3215f52065c2c177f576c41959 (diff)
parentd2bd4a770d2a5b3fd56bd3a8584935240d9012f8 (diff)
Merge branch 'org.openembedded.dev' of git+ssh://git.openembedded.net/openembedded into org.openembedded.dev
Diffstat (limited to 'recipes/glib-2.0/glib-2.0-2.24.0/gatomic-proper-pointer-get-cast.patch')
-rw-r--r--recipes/glib-2.0/glib-2.0-2.24.0/gatomic-proper-pointer-get-cast.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/recipes/glib-2.0/glib-2.0-2.24.0/gatomic-proper-pointer-get-cast.patch b/recipes/glib-2.0/glib-2.0-2.24.0/gatomic-proper-pointer-get-cast.patch
new file mode 100644
index 0000000000..5e8f836cb2
--- /dev/null
+++ b/recipes/glib-2.0/glib-2.0-2.24.0/gatomic-proper-pointer-get-cast.patch
@@ -0,0 +1,13 @@
+Index: glib-2.23.6/glib/gatomic.h
+===================================================================
+--- glib-2.23.6.orig/glib/gatomic.h 2010-03-29 13:01:28.000000000 +0400
++++ glib-2.23.6/glib/gatomic.h 2010-03-29 13:01:35.000000000 +0400
+@@ -70,7 +70,7 @@
+ (g_atomic_int_set) ((volatile gint G_GNUC_MAY_ALIAS *) (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 *) (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 *) (void *) (atomic), (newval)))