changeset 29220:88d889b54df4

Fix building finch & libgnt using older gcc or non-gcc compilers that do not understand G_GNUC_NULL_TERMINATED
author Stu Tomlinson <stu@nosnilmot.com>
date Thu, 31 Dec 2009 17:33:35 +0000
parents 8defc6454a9f
children 111a0a420ac7
files finch/gntidle.c finch/gntrequest.c finch/gntstatus.c finch/libgnt/gntinternal.h finch/libgnt/gntline.c finch/libgnt/gntmenuitem.c finch/libgnt/gntmenuitemcheck.c finch/libgnt/gntprogressbar.c finch/libgnt/gntslider.c finch/libgnt/gntwidget.c finch/libgnt/gntwindow.c finch/libgnt/wms/irssi.c
diffstat 12 files changed, 23 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/finch/gntidle.c	Thu Dec 31 14:53:58 2009 +0000
+++ b/finch/gntidle.c	Thu Dec 31 17:33:35 2009 +0000
@@ -21,6 +21,8 @@
  *
  */
 
+#include <internal.h>
+
 #include "finch.h"
 #include "gntidle.h"
 #include "gntwm.h"
--- a/finch/gntrequest.c	Thu Dec 31 14:53:58 2009 +0000
+++ b/finch/gntrequest.c	Thu Dec 31 17:33:35 2009 +0000
@@ -23,6 +23,8 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02111-1301  USA
  */
+#include <internal.h>
+
 #include <gnt.h>
 #include <gntbox.h>
 #include <gntbutton.h>
@@ -35,7 +37,6 @@
 #include <gnttree.h>
 
 #include "finch.h"
-#include <internal.h>
 #include "gntrequest.h"
 #include "debug.h"
 #include "util.h"
--- a/finch/gntstatus.c	Thu Dec 31 14:53:58 2009 +0000
+++ b/finch/gntstatus.c	Thu Dec 31 17:33:35 2009 +0000
@@ -23,6 +23,8 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02111-1301  USA
  */
+#include <internal.h>
+
 #include <gnt.h>
 #include <gntbox.h>
 #include <gntbutton.h>
@@ -34,7 +36,6 @@
 #include <gntutils.h>
 
 #include "finch.h"
-#include <internal.h>
 
 #include <notify.h>
 #include <request.h>
--- a/finch/libgnt/gntinternal.h	Thu Dec 31 14:53:58 2009 +0000
+++ b/finch/libgnt/gntinternal.h	Thu Dec 31 17:33:35 2009 +0000
@@ -32,6 +32,14 @@
 # define gnt_warning g_warning
 #endif
 
+#ifndef G_GNUC_NULL_TERMINATED
+#	if defined(__GNUC__) && __GNUC__ >= 4
+#		define G_GNUC_NULL_TERMINATED __attribute__((__sentinel__))
+#	else
+#		define G_GNUC_NULL_TERMINATED
+#	endif
+#endif
+
 extern int gnt_need_conversation_to_locale;
 extern const char *C_(const char *x);
 
--- a/finch/libgnt/gntline.c	Thu Dec 31 14:53:58 2009 +0000
+++ b/finch/libgnt/gntline.c	Thu Dec 31 17:33:35 2009 +0000
@@ -20,6 +20,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02111-1301  USA
  */
 
+#include "gntinternal.h"
 #include "gntline.h"
 
 enum
--- a/finch/libgnt/gntmenuitem.c	Thu Dec 31 14:53:58 2009 +0000
+++ b/finch/libgnt/gntmenuitem.c	Thu Dec 31 17:33:35 2009 +0000
@@ -20,6 +20,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02111-1301  USA
  */
 
+#include "gntinternal.h"
 #include "gntmenu.h"
 #include "gntmenuitem.h"
 
--- a/finch/libgnt/gntmenuitemcheck.c	Thu Dec 31 14:53:58 2009 +0000
+++ b/finch/libgnt/gntmenuitemcheck.c	Thu Dec 31 17:33:35 2009 +0000
@@ -20,6 +20,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02111-1301  USA
  */
 
+#include "gntinternal.h"
 #include "gntmenuitemcheck.h"
 
 static GntMenuItemClass *parent_class = NULL;
--- a/finch/libgnt/gntprogressbar.c	Thu Dec 31 14:53:58 2009 +0000
+++ b/finch/libgnt/gntprogressbar.c	Thu Dec 31 17:33:35 2009 +0000
@@ -20,6 +20,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02111-1301  USA
  **/
 
+#include "gntinternal.h"
 #include "gntprogressbar.h"
 #include "gntutils.h"
 
--- a/finch/libgnt/gntslider.c	Thu Dec 31 14:53:58 2009 +0000
+++ b/finch/libgnt/gntslider.c	Thu Dec 31 17:33:35 2009 +0000
@@ -20,6 +20,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02111-1301  USA
  */
 
+#include "gntinternal.h"
 #include "gntcolors.h"
 #include "gntkeys.h"
 #include "gntslider.h"
--- a/finch/libgnt/gntwidget.c	Thu Dec 31 14:53:58 2009 +0000
+++ b/finch/libgnt/gntwidget.c	Thu Dec 31 17:33:35 2009 +0000
@@ -22,6 +22,7 @@
 
 /* Stuff brutally ripped from Gflib */
 
+#include "gntinternal.h"
 #include "gntwidget.h"
 #include "gntstyle.h"
 #include "gntmarshal.h"
--- a/finch/libgnt/gntwindow.c	Thu Dec 31 14:53:58 2009 +0000
+++ b/finch/libgnt/gntwindow.c	Thu Dec 31 17:33:35 2009 +0000
@@ -20,6 +20,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02111-1301  USA
  */
 
+#include "gntinternal.h"
 #include "gntstyle.h"
 #include "gntwindow.h"
 
--- a/finch/libgnt/wms/irssi.c	Thu Dec 31 14:53:58 2009 +0000
+++ b/finch/libgnt/wms/irssi.c	Thu Dec 31 17:33:35 2009 +0000
@@ -33,6 +33,8 @@
 #include <string.h>
 #include <sys/types.h>
 
+#include "gntinternal.h"
+
 #include "gnt.h"
 #include "gntbox.h"
 #include "gntmenu.h"