eid-viewer
eid-viewer library
glib_util.h
1 #ifndef EID_VWR_GLIB_UTIL_H
2 #define EID_VWR_GLIB_UTIL_H
3 
4 /*
5  * g_hash_table_contains is new in glib 2.32. If we're using an older
6  * glib version, emulate its behaviour with g_hash_table_lookup_extended
7  */
8 #include <glib.h>
9 #if !GLIB_CHECK_VERSION(2, 32, 0)
10 #define g_hash_table_contains(t, k) g_hash_table_lookup_extended(t, k, NULL, NULL)
11 #endif
12 
13 #ifndef G_GNUC_BEGIN_IGNORE_DEPRECATIONS
14 #define G_GNUC_BEGIN_IGNORE_DEPRECATIONS
15 #define G_GNUC_END_IGNORE_DEPRECATIONS
16 #endif
17 
18 #endif