# HG changeset patch # User Stu Tomlinson # Date 1262280815 0 # Node ID 88d889b54df44248dbc358e51e0846bdff0db2c5 # Parent 8defc6454a9fe2c35004c0681ab1ff0e1500d7bd Fix building finch & libgnt using older gcc or non-gcc compilers that do not understand G_GNUC_NULL_TERMINATED diff -r 8defc6454a9f -r 88d889b54df4 finch/gntidle.c --- 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 + #include "finch.h" #include "gntidle.h" #include "gntwm.h" diff -r 8defc6454a9f -r 88d889b54df4 finch/gntrequest.c --- 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 + #include #include #include @@ -35,7 +37,6 @@ #include #include "finch.h" -#include #include "gntrequest.h" #include "debug.h" #include "util.h" diff -r 8defc6454a9f -r 88d889b54df4 finch/gntstatus.c --- 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 + #include #include #include @@ -34,7 +36,6 @@ #include #include "finch.h" -#include #include #include diff -r 8defc6454a9f -r 88d889b54df4 finch/libgnt/gntinternal.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); diff -r 8defc6454a9f -r 88d889b54df4 finch/libgnt/gntline.c --- 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 diff -r 8defc6454a9f -r 88d889b54df4 finch/libgnt/gntmenuitem.c --- 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" diff -r 8defc6454a9f -r 88d889b54df4 finch/libgnt/gntmenuitemcheck.c --- 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; diff -r 8defc6454a9f -r 88d889b54df4 finch/libgnt/gntprogressbar.c --- 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" diff -r 8defc6454a9f -r 88d889b54df4 finch/libgnt/gntslider.c --- 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" diff -r 8defc6454a9f -r 88d889b54df4 finch/libgnt/gntwidget.c --- 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" diff -r 8defc6454a9f -r 88d889b54df4 finch/libgnt/gntwindow.c --- 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" diff -r 8defc6454a9f -r 88d889b54df4 finch/libgnt/wms/irssi.c --- 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 #include +#include "gntinternal.h" + #include "gnt.h" #include "gntbox.h" #include "gntmenu.h"