diff options
author | Daniel Atallah <datallah@pidgin.im> | 2010-01-08 01:30:43 +0000 |
---|---|---|
committer | Daniel Atallah <datallah@pidgin.im> | 2010-01-08 01:30:43 +0000 |
commit | 35c9f97e9e8b6d203226cfa2f3e3818cd7e63b9d (patch) | |
tree | ed9c59355f7166c93cba014cf3deefeaf4e0cbd2 | |
parent | 9aa4ce6b3578b26d42243aaed547eceee60af4e7 (diff) | |
download | pidgin-35c9f97e9e8b6d203226cfa2f3e3818cd7e63b9d.tar.gz |
*** Plucked rev ea18c8ce78c0229a5b968aab268f38e9bcae0aee (8e1d807c1aadfb510e14f047d2cf00e0c06be465):
Fix building finch & libgnt using older gcc or non-gcc compilers that do
not understand G_GNUC_NULL_TERMINATED
-rw-r--r-- | finch/gntidle.c | 2 | ||||
-rw-r--r-- | finch/gntrequest.c | 3 | ||||
-rw-r--r-- | finch/gntstatus.c | 3 | ||||
-rw-r--r-- | finch/libgnt/gntinternal.h | 8 | ||||
-rw-r--r-- | finch/libgnt/gntline.c | 1 | ||||
-rw-r--r-- | finch/libgnt/gntmenuitem.c | 1 | ||||
-rw-r--r-- | finch/libgnt/gntmenuitemcheck.c | 1 | ||||
-rw-r--r-- | finch/libgnt/gntprogressbar.c | 1 | ||||
-rw-r--r-- | finch/libgnt/gntslider.c | 1 | ||||
-rw-r--r-- | finch/libgnt/gntwidget.c | 1 | ||||
-rw-r--r-- | finch/libgnt/gntwindow.c | 1 | ||||
-rw-r--r-- | finch/libgnt/wms/irssi.c | 2 |
12 files changed, 23 insertions, 2 deletions
diff --git a/finch/gntidle.c b/finch/gntidle.c index 1452bcd6d2..d635bc3eff 100644 --- a/finch/gntidle.c +++ b/finch/gntidle.c @@ -21,6 +21,8 @@ * */ +#include <internal.h> + #include "finch.h" #include "gntidle.h" #include "gntwm.h" diff --git a/finch/gntrequest.c b/finch/gntrequest.c index 6c51521697..243c16e879 100644 --- a/finch/gntrequest.c +++ b/finch/gntrequest.c @@ -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" diff --git a/finch/gntstatus.c b/finch/gntstatus.c index 31c7494ad2..0ca23875fe 100644 --- a/finch/gntstatus.c +++ b/finch/gntstatus.c @@ -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> diff --git a/finch/libgnt/gntinternal.h b/finch/libgnt/gntinternal.h index aaec54f1a5..79c8836346 100644 --- a/finch/libgnt/gntinternal.h +++ b/finch/libgnt/gntinternal.h @@ -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 --git a/finch/libgnt/gntline.c b/finch/libgnt/gntline.c index 3f880eb2c0..50418fdda1 100644 --- a/finch/libgnt/gntline.c +++ b/finch/libgnt/gntline.c @@ -20,6 +20,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA */ +#include "gntinternal.h" #include "gntline.h" enum diff --git a/finch/libgnt/gntmenuitem.c b/finch/libgnt/gntmenuitem.c index 505ce85585..306ef55d52 100644 --- a/finch/libgnt/gntmenuitem.c +++ b/finch/libgnt/gntmenuitem.c @@ -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 --git a/finch/libgnt/gntmenuitemcheck.c b/finch/libgnt/gntmenuitemcheck.c index fbaa2bc74e..7a4dd9f779 100644 --- a/finch/libgnt/gntmenuitemcheck.c +++ b/finch/libgnt/gntmenuitemcheck.c @@ -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 --git a/finch/libgnt/gntprogressbar.c b/finch/libgnt/gntprogressbar.c index 0032fabbe2..1e9f576049 100644 --- a/finch/libgnt/gntprogressbar.c +++ b/finch/libgnt/gntprogressbar.c @@ -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 --git a/finch/libgnt/gntslider.c b/finch/libgnt/gntslider.c index 3d84618cfb..63e5d694bf 100644 --- a/finch/libgnt/gntslider.c +++ b/finch/libgnt/gntslider.c @@ -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 --git a/finch/libgnt/gntwidget.c b/finch/libgnt/gntwidget.c index 21f0873860..5ccfa14f52 100644 --- a/finch/libgnt/gntwidget.c +++ b/finch/libgnt/gntwidget.c @@ -22,6 +22,7 @@ /* Stuff brutally ripped from Gflib */ +#include "gntinternal.h" #include "gntwidget.h" #include "gntstyle.h" #include "gntmarshal.h" diff --git a/finch/libgnt/gntwindow.c b/finch/libgnt/gntwindow.c index acf725f86f..f4ea3c6e70 100644 --- a/finch/libgnt/gntwindow.c +++ b/finch/libgnt/gntwindow.c @@ -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 --git a/finch/libgnt/wms/irssi.c b/finch/libgnt/wms/irssi.c index 15e2242d6a..d9c1460793 100644 --- a/finch/libgnt/wms/irssi.c +++ b/finch/libgnt/wms/irssi.c @@ -33,6 +33,8 @@ #include <string.h> #include <sys/types.h> +#include "gntinternal.h" + #include "gnt.h" #include "gntbox.h" #include "gntmenu.h" |