[gtk+] __SIZEOF_INT__ and __SIZEOF_POINTER__ may not be defined.



commit f44b8465f1733f848b69ffde85d12dfb5e1b36e1
Author: Antoine Jacoutot <ajacoutot openbsd org>
Date:   Mon Oct 3 09:11:50 2011 +0200

    __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

 gtk/gtktextattributes.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtktextattributes.h b/gtk/gtktextattributes.h
index 12c1af7..d07a2ee 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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]