File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -297,3 +297,14 @@ g_utf8_get_char_validated_fixed(const gchar *p, gssize max_len)
297
297
return g_utf8_get_char_validated (p , max_len );
298
298
}
299
299
#endif
300
+
301
+
302
+ #if !GLIB_CHECK_VERSION (2 , 58 , 0 )
303
+ gboolean
304
+ slng_g_hash_table_steal_extended (GHashTable * hash_table , gconstpointer lookup_key ,
305
+ gpointer * stolen_key , gpointer * stolen_value )
306
+ {
307
+ g_hash_table_lookup_extended (hash_table , lookup_key , stolen_key , stolen_value );
308
+ return g_hash_table_steal (hash_table , lookup_key );
309
+ }
310
+ #endif
Original file line number Diff line number Diff line change @@ -68,4 +68,10 @@ gunichar g_utf8_get_char_validated_fixed (const gchar *p, gssize max_len);
68
68
#define g_pattern_spec_match g_pattern_match
69
69
#endif
70
70
71
+ #if !GLIB_CHECK_VERSION (2 , 58 , 0 )
72
+ #define g_hash_table_steal_extended slng_g_hash_table_steal_extended
73
+ gboolean slng_g_hash_table_steal_extended (GHashTable * hash_table , gconstpointer lookup_key ,
74
+ gpointer * stolen_key , gpointer * stolen_value );
75
+ #endif
76
+
71
77
#endif
You can’t perform that action at this time.
0 commit comments