aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/glib-2.0/glib-2.0-2.24.1/gatomic-proper-pointer-get-cast.patch
diff options
context:
space:
mode:
authorStanislav Brabec <utx@penguin.cz>2010-07-09 19:28:48 +0000
committerutx@penguin.cz <utx@penguin.cz>2010-07-09 19:28:48 +0000
commit211fb05d665e95192cf4d4b81dfa89fde04359cf (patch)
tree675aaf24bc245e384e1db2dfdaf129ec1b9124b3 /recipes/glib-2.0/glib-2.0-2.24.1/gatomic-proper-pointer-get-cast.patch
parent2f5f6670525bfcf2b6707d28bceb147986c133ef (diff)
downloadopenembedded-211fb05d665e95192cf4d4b81dfa89fde04359cf.tar.gz
glib-2.0: Update to version 2.24.1. 4 bug fixes, 2 of them were included as patches.
Diffstat (limited to 'recipes/glib-2.0/glib-2.0-2.24.1/gatomic-proper-pointer-get-cast.patch')
-rw-r--r--recipes/glib-2.0/glib-2.0-2.24.1/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.1/gatomic-proper-pointer-get-cast.patch b/recipes/glib-2.0/glib-2.0-2.24.1/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.1/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)))