libpurple/plugins/helloworld.c

branch
release-2.2.1
changeset 20084
7b3c24de3714
parent 19878
aa9d2cfa70bf
child 20288
5ca925a094e2
--- 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>

mercurial