| 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 |