From 8888d32953c87b4fc8afce8426ee966edf33f7a3 Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Thu, 1 Apr 2010 10:25:15 +0200 Subject: glib 2.0: add 2.24.0 --- .../glib-2.0-2.24.0/gatomic-proper-pointer-get-cast.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 recipes/glib-2.0/glib-2.0-2.24.0/gatomic-proper-pointer-get-cast.patch (limited to 'recipes/glib-2.0/glib-2.0-2.24.0/gatomic-proper-pointer-get-cast.patch') 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))) -- cgit v1.2.3