Fix building finch & libgnt using older gcc or non-gcc compilers that do
not understand G_GNUC_NULL_TERMINATED
--- a/gntinternal.h Tue Dec 08 12:13:08 2009 +0000
+++ b/gntinternal.h Thu Dec 31 17:33:35 2009 +0000
@@ -32,6 +32,14 @@
# define gnt_warning g_warning
+#ifndef G_GNUC_NULL_TERMINATED +# if defined(__GNUC__) && __GNUC__ >= 4 +# define G_GNUC_NULL_TERMINATED __attribute__((__sentinel__)) +# define G_GNUC_NULL_TERMINATED extern int gnt_need_conversation_to_locale;
extern const char *C_(const char *x);
--- a/gntline.c Tue Dec 08 12:13:08 2009 +0000
+++ b/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" --- a/gntmenuitem.c Tue Dec 08 12:13:08 2009 +0000
+++ b/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" --- a/gntmenuitemcheck.c Tue Dec 08 12:13:08 2009 +0000
+++ b/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/gntprogressbar.c Tue Dec 08 12:13:08 2009 +0000
+++ b/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"
--- a/gntslider.c Tue Dec 08 12:13:08 2009 +0000
+++ b/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" --- a/gntwidget.c Tue Dec 08 12:13:08 2009 +0000
+++ b/gntwidget.c Thu Dec 31 17:33:35 2009 +0000
@@ -22,6 +22,7 @@
/* Stuff brutally ripped from Gflib */
+#include "gntinternal.h" --- a/gntwindow.c Tue Dec 08 12:13:08 2009 +0000
+++ b/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" --- a/wms/irssi.c Tue Dec 08 12:13:08 2009 +0000
+++ b/wms/irssi.c Thu Dec 31 17:33:35 2009 +0000
@@ -33,6 +33,8 @@
+#include "gntinternal.h"