27 #ifndef PURPLE_GLIBCOMPAT_H
28 #define PURPLE_GLIBCOMPAT_H
32 #if !GLIB_CHECK_VERSION(2,32,0)
33 # define G_GNUC_BEGIN_IGNORE_DEPRECATIONS
34 # define G_GNUC_END_IGNORE_DEPRECATIONS
36 void g_queue_free_full(GQueue *queue, GDestroyNotify free_func);
38 gboolean g_hash_table_contains (GHashTable *hash_table, gconstpointer key);
44 #undef G_GNUC_BEGIN_IGNORE_DEPRECATIONS
45 #define G_GNUC_BEGIN_IGNORE_DEPRECATIONS \
46 _Pragma ("clang diagnostic push") \
47 _Pragma ("clang diagnostic ignored \"-Wdeprecated-declarations\"")
49 #undef G_GNUC_END_IGNORE_DEPRECATIONS
50 #define G_GNUC_END_IGNORE_DEPRECATIONS \
51 _Pragma ("clang diagnostic pop")