# HG changeset patch # User Daniel Atallah # Date 1262914243 0 # Node ID 97f04fd369a0175f9449f9fb45fa1afc6f69d4c0 # Parent 47672ba67baec5b3ca375cb4c3b1c9a0e5a19ae3 *** Plucked rev ea18c8ce78c0229a5b968aab268f38e9bcae0aee (8e1d807c1aadfb510e14f047d2cf00e0c06be465): Fix building finch & libgnt using older gcc or non-gcc compilers that do not understand G_GNUC_NULL_TERMINATED diff -r 47672ba67bae -r 97f04fd369a0 finch/gntidle.c --- a/finch/gntidle.c Thu Jan 07 23:51:10 2010 +0000 +++ b/finch/gntidle.c Fri Jan 08 01:30:43 2010 +0000 @@ -21,6 +21,8 @@ * */ +#include + #include "finch.h" #include "gntidle.h" #include "gntwm.h" diff -r 47672ba67bae -r 97f04fd369a0 finch/gntrequest.c --- a/finch/gntrequest.c Thu Jan 07 23:51:10 2010 +0000 +++ b/finch/gntrequest.c Fri Jan 08 01:30:43 2010 +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 47672ba67bae -r 97f04fd369a0 finch/gntstatus.c --- a/finch/gntstatus.c Thu Jan 07 23:51:10 2010 +0000 +++ b/finch/gntstatus.c Fri Jan 08 01:30:43 2010 +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 47672ba67bae -r 97f04fd369a0 finch/libgnt/gntinternal.h --- a/finch/libgnt/gntinternal.h Thu Jan 07 23:51:10 2010 +0000 +++ b/finch/libgnt/gntinternal.h Fri Jan 08 01:30:43 2010 +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 47672ba67bae -r 97f04fd369a0 finch/libgnt/gntline.c --- a/finch/libgnt/gntline.c Thu Jan 07 23:51:10 2010 +0000 +++ b/finch/libgnt/gntline.c Fri Jan 08 01:30:43 2010 +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 47672ba67bae -r 97f04fd369a0 finch/libgnt/gntmenuitem.c --- a/finch/libgnt/gntmenuitem.c Thu Jan 07 23:51:10 2010 +0000 +++ b/finch/libgnt/gntmenuitem.c Fri Jan 08 01:30:43 2010 +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 47672ba67bae -r 97f04fd369a0 finch/libgnt/gntmenuitemcheck.c --- a/finch/libgnt/gntmenuitemcheck.c Thu Jan 07 23:51:10 2010 +0000 +++ b/finch/libgnt/gntmenuitemcheck.c Fri Jan 08 01:30:43 2010 +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 47672ba67bae -r 97f04fd369a0 finch/libgnt/gntprogressbar.c --- a/finch/libgnt/gntprogressbar.c Thu Jan 07 23:51:10 2010 +0000 +++ b/finch/libgnt/gntprogressbar.c Fri Jan 08 01:30:43 2010 +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 47672ba67bae -r 97f04fd369a0 finch/libgnt/gntslider.c --- a/finch/libgnt/gntslider.c Thu Jan 07 23:51:10 2010 +0000 +++ b/finch/libgnt/gntslider.c Fri Jan 08 01:30:43 2010 +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 47672ba67bae -r 97f04fd369a0 finch/libgnt/gntwidget.c --- a/finch/libgnt/gntwidget.c Thu Jan 07 23:51:10 2010 +0000 +++ b/finch/libgnt/gntwidget.c Fri Jan 08 01:30:43 2010 +0000 @@ -22,6 +22,7 @@ /* Stuff brutally ripped from Gflib */ +#include "gntinternal.h" #include "gntwidget.h" #include "gntstyle.h" #include "gntmarshal.h" diff -r 47672ba67bae -r 97f04fd369a0 finch/libgnt/gntwindow.c --- a/finch/libgnt/gntwindow.c Thu Jan 07 23:51:10 2010 +0000 +++ b/finch/libgnt/gntwindow.c Fri Jan 08 01:30:43 2010 +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 47672ba67bae -r 97f04fd369a0 finch/libgnt/wms/irssi.c --- a/finch/libgnt/wms/irssi.c Thu Jan 07 23:51:10 2010 +0000 +++ b/finch/libgnt/wms/irssi.c Fri Jan 08 01:30:43 2010 +0000 @@ -33,6 +33,8 @@ #include #include +#include "gntinternal.h" + #include "gnt.h" #include "gntbox.h" #include "gntmenu.h"