Mercurial > pidgin.yaz
comparison libpurple/plugins/helloworld.c @ 20101:3a5f152e7ed0
This fixes compilation issues where old glib and either an old gcc or a
non-gcc compiler is used. I have opted to put the same preprocessor
directives in each plugin over including additional headers to fix this for
the purposes of staying as close as possible to the version I have in the
how-to documentss on the wiki. Fixes #3142 and bugs reported via the mailing
list, IRC channel, and XMPP conference.
author | John Bailey <rekkanoryo@rekkanoryo.org> |
---|---|
date | Mon, 17 Sep 2007 04:50:24 +0000 |
parents | bdffee131b80 |
children | 3cc856ca2338 |
comparison
equal
deleted
inserted
replaced
20099:ac6bf49cd5ba | 20101:3a5f152e7ed0 |
---|---|
30 #ifndef PURPLE_PLUGINS | 30 #ifndef PURPLE_PLUGINS |
31 # define PURPLE_PLUGINS | 31 # define PURPLE_PLUGINS |
32 #endif | 32 #endif |
33 | 33 |
34 #include <glib.h> | 34 #include <glib.h> |
35 | |
36 /* This will prevent compiler errors in some instances and is better explained in the | |
37 * how-to documents on the wiki */ | |
38 #ifndef G_GNUC_NULL_TERMINATED | |
39 # if __GNUC__ >= 4 | |
40 # define G_GNUC_NULL_TERMINATED __attribute__((__sentinel__)) | |
41 # else | |
42 # define G_GNUC_NULL_TERMINATED | |
43 # endif | |
44 #endif | |
35 | 45 |
36 #include <notify.h> | 46 #include <notify.h> |
37 #include <plugin.h> | 47 #include <plugin.h> |
38 #include <version.h> | 48 #include <version.h> |
39 | 49 |