comparison libpurple/plugins/notify_example.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 26f562916f98
children 3cc856ca2338
comparison
equal deleted inserted replaced
20188:3ae22bbdaeff 20189:ec021d436c42
23 #ifdef HAVE_CONFIG_H 23 #ifdef HAVE_CONFIG_H
24 # include <config.h> 24 # include <config.h>
25 #endif 25 #endif
26 26
27 #include <glib.h> 27 #include <glib.h>
28
29 /* This will prevent compiler errors in some instances and is better explained in the
30 * how-to documents on the wiki */
31 #ifndef G_GNUC_NULL_TERMINATED
32 # if __GNUC__ >= 4
33 # define G_GNUC_NULL_TERMINATED __attribute__((__sentinel__))
34 # else
35 # define G_GNUC_NULL_TERMINATED
36 # endif
37 #endif
28 38
29 /* This is the required definition of PURPLE_PLUGINS as required for a plugin, 39 /* This is the required definition of PURPLE_PLUGINS as required for a plugin,
30 * but we protect it with an #ifndef because config.h may define it for us 40 * but we protect it with an #ifndef because config.h may define it for us
31 * already and this would cause an unneeded compiler warning. */ 41 * already and this would cause an unneeded compiler warning. */
32 #ifndef PURPLE_PLUGINS 42 #ifndef PURPLE_PLUGINS