1 #ifndef _GLIBCOMPAT_H_
2 #define _GLIBCOMPAT_H_
3 
4 #if !GLIB_CHECK_VERSION(2, 32, 0)
5 #define g_hash_table_contains(hash_table, key) g_hash_table_lookup_extended(hash_table, key, NULL, NULL)
6 #endif /* 2.32.0 */
7 
8 
9 #if !GLIB_CHECK_VERSION(2, 28, 0)
10 gint64
g_get_real_time()11 g_get_real_time()
12 {
13 	GTimeVal val;
14 
15 	g_get_current_time (&val);
16 
17 	return (((gint64) val.tv_sec) * 1000000) + val.tv_usec;
18 }
19 #endif /* 2.28.0 */
20 
21 #endif /*_GLIBCOMPAT_H_*/