From c9892df362817c90b05678aef6a519f607c66692 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Wed, 30 Oct 2013 11:26:48 -0400 Subject: [PATCH] gtktextattributes: Use an anonymous union instead of arch-testing #ifdef This avoids having Gtk-3.0.gir differ on 32 vs 64 bit, which causes issues for "multilib" in Fedora/OpenSUSE type systems. See https://bugzilla.gnome.org/show_bug.cgi?id=711153 for more information. https://bugzilla.gnome.org/show_bug.cgi?id=711158 --- gtk/gtktextattributes.h | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/gtk/gtktextattributes.h b/gtk/gtktextattributes.h index d712dbe20b..616fc8b24c 100644 --- a/gtk/gtktextattributes.h +++ b/gtk/gtktextattributes.h @@ -94,12 +94,10 @@ struct _GtkTextAppearance guint inside_selection : 1; guint is_text : 1; - GdkRGBA *rgba[2]; - -#if (defined(__SIZEOF_INT__) && defined(__SIZEOF_POINTER__)) && (__SIZEOF_INT__ == __SIZEOF_POINTER__) - /* unusable, just for ABI compat */ - guint padding[2]; -#endif + union { + GdkRGBA *rgba[2]; + guint padding[4]; + }; }; /**