summaryrefslogtreecommitdiff
path: root/gtk/gtktextattributes.h
diff options
context:
space:
mode:
authorAntoine Jacoutot <ajacoutot@openbsd.org>2011-10-03 09:11:50 +0200
committerAntoine Jacoutot <ajacoutot@openbsd.org>2011-10-03 09:11:50 +0200
commitf44b8465f1733f848b69ffde85d12dfb5e1b36e1 (patch)
tree7e80248c8dca1e6da676a5a5b1b125274cbebc8f /gtk/gtktextattributes.h
parent8985ce3b7245df120659f3537214a16b144392fb (diff)
downloadgtk+-f44b8465f1733f848b69ffde85d12dfb5e1b36e1.tar.gz
__SIZEOF_INT__ and __SIZEOF_POINTER__ may not be defined.
Protect __SIZEOF_INT__ and __SIZEOF_POINTER__ with an ifdef to prevent warnings about them not being defined when including gtktextattributes.h. https://bugzilla.gnome.org/show_bug.cgi?id=660619
Diffstat (limited to 'gtk/gtktextattributes.h')
-rw-r--r--gtk/gtktextattributes.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtktextattributes.h b/gtk/gtktextattributes.h
index 12c1af7063..d07a2eee57 100644
--- a/gtk/gtktextattributes.h
+++ b/gtk/gtktextattributes.h
@@ -104,7 +104,7 @@ struct _GtkTextAppearance
GdkRGBA *rgba[2];
-#if __SIZEOF_INT__ == __SIZEOF_POINTER__
+#if (defined(__SIZEOF_INT__) && defined(__SIZEOF_POINTER__)) && (__SIZEOF_INT__ == __SIZEOF_POINTER__)
/* unusable, just for ABI compat */
guint padding[2];
#endif