Protect __SIZEOF_INT__ and __SIZEOF_POINTER__ with an ifdef tp prevent
warnings when including gtktextattributes.h.
This commit is contained in:
parent
cb127d0a7d
commit
746448fdda
@ -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
|
||||
|
18
x11/gtk+3/patches/patch-gtk_gtktextattributes_h
Normal file
18
x11/gtk+3/patches/patch-gtk_gtktextattributes_h
Normal 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
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user