qulogic/libgnt

Parents 96e325d99c57
Children c58578ec3710
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
#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/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"
#include "gntline.h"
enum
--- 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"
#include "gntmenu.h"
#include "gntmenuitem.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"
#include "gntutils.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"
#include "gntcolors.h"
#include "gntkeys.h"
#include "gntslider.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"
#include "gntwidget.h"
#include "gntstyle.h"
#include "gntmarshal.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"
#include "gntstyle.h"
#include "gntwindow.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 <string.h>
#include <sys/types.h>
+#include "gntinternal.h"
+
#include "gnt.h"
#include "gntbox.h"
#include "gntmenu.h"