libpurple/plugins/debug_example.c

branch
release-2.2.1
changeset 20084
7b3c24de3714
parent 19878
aa9d2cfa70bf
child 20288
5ca925a094e2
equal deleted inserted replaced
20083:a67242170160 20084:7b3c24de3714
24 # include <config.h> 24 # include <config.h>
25 #endif 25 #endif
26 26
27 /* We're including glib.h again for the gboolean type. */ 27 /* We're including glib.h again for the gboolean type. */
28 #include <glib.h> 28 #include <glib.h>
29
30 /* This will prevent compiler errors in some instances and is better explained in the
31 * how-to documents on the wiki */
32 #ifndef G_GNUC_NULL_TERMINATED
33 # if __GNUC__ >= 4
34 # define G_GNUC_NULL_TERMINATED __attribute__((__sentinel__))
35 # else
36 # define G_GNUC_NULL_TERMINATED
37 # endif
38 #endif
29 39
30 /* This is the required definition of PURPLE_PLUGINS as required for a plugin, 40 /* This is the required definition of PURPLE_PLUGINS as required for a plugin,
31 * but we protect it with an #ifndef because config.h may define it for us 41 * but we protect it with an #ifndef because config.h may define it for us
32 * already and this would cause an unneeded compiler warning. */ 42 * already and this would cause an unneeded compiler warning. */
33 #ifndef PURPLE_PLUGINS 43 #ifndef PURPLE_PLUGINS

mercurial