diff libpurple/plugins/helloworld.c @ 20189:ec021d436c42

applied changes from f4700a52b60d8473e9671ceabfec7772211fe424 through 936cdaa27fea9a9673ee31a184af0a30d9471abe
author Richard Laager <rlaager@wiktel.com>
date Fri, 28 Sep 2007 15:00:18 +0000
parents bdffee131b80
children 3cc856ca2338
line wrap: on
line diff
--- a/libpurple/plugins/helloworld.c	Fri Sep 28 14:54:23 2007 +0000
+++ b/libpurple/plugins/helloworld.c	Fri Sep 28 15:00:18 2007 +0000
@@ -33,6 +33,16 @@
 
 #include <glib.h>
 
+/* This will prevent compiler errors in some instances and is better explained in the
+ * how-to documents on the wiki */
+#ifndef G_GNUC_NULL_TERMINATED
+# if __GNUC__ >= 4
+#  define G_GNUC_NULL_TERMINATED __attribute__((__sentinel__))
+# else
+#  define G_GNUC_NULL_TERMINATED
+# endif
+#endif
+
 #include <notify.h>
 #include <plugin.h>
 #include <version.h>