Mercurial > pidgin.yaz
changeset 29255:97f04fd369a0
*** Plucked rev ea18c8ce78c0229a5b968aab268f38e9bcae0aee (8e1d807c1aadfb510e14f047d2cf00e0c06be465):
Fix building finch & libgnt using older gcc or non-gcc compilers that do
not understand G_GNUC_NULL_TERMINATED
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Fri, 08 Jan 2010 01:30:43 +0000 |
parents | 47672ba67bae |
children | a94b530cf3b7 |
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 Jan 07 23:51:10 2010 +0000 +++ b/finch/gntidle.c Fri Jan 08 01:30:43 2010 +0000 @@ -21,6 +21,8 @@ * */ +#include <internal.h> + #include "finch.h" #include "gntidle.h" #include "gntwm.h"
--- 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 <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 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 <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 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);
--- 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
--- 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"
--- 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;
--- 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"
--- 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"
--- 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"