Protect __SIZEOF_INT__ and __SIZEOF_POINTER__ with an ifdef tp prevent

warnings when including gtktextattributes.h.
This commit is contained in:
ajacoutot 2011-10-01 09:38:44 +00:00
parent cb127d0a7d
commit 746448fdda
2 changed files with 21 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.22 2011/09/26 07:14:49 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.23 2011/10/01 09:38:44 ajacoutot Exp $
SHARED_ONLY= Yes
@ -14,6 +14,8 @@ PKGNAME-main= gtk+3-${V}
PKGNAME-docs= gtk+3-docs-${V}
PKGNAME-cups= gtk+3-cups-${V}
REVISION-main= 0
CATEGORIES= x11 devel
SHARED_LIBS += gdk-3 1.0 # 192.0

View File

@ -0,0 +1,18 @@
$OpenBSD: patch-gtk_gtktextattributes_h,v 1.1 2011/10/01 09:38:44 ajacoutot Exp $
https://bugzilla.gnome.org/show_bug.cgi?id=660619
--- gtk/gtktextattributes.h.orig Tue Aug 16 04:04:34 2011
+++ gtk/gtktextattributes.h Sat Oct 1 11:14:21 2011
@@ -104,9 +104,11 @@ struct _GtkTextAppearance
GdkRGBA *rgba[2];
+#if defined(__SIZEOF_INT__) && defined(__SIZEOF_POINTER__)
#if __SIZEOF_INT__ == __SIZEOF_POINTER__
/* unusable, just for ABI compat */
guint padding[2];
+#endif
#endif
};