g_hash_table_contains implementation for old glib version

remotes/origin/HEAD
Richard Fuchs 13 years ago
parent 6adda7c301
commit ad4cef0f37

@ -60,6 +60,12 @@ void g_string_vprintf(GString *string, const gchar *format, va_list args);
void g_queue_clear(GQueue *);
#endif
#if !GLIB_CHECK_VERSION(2,32,0)
static inline int g_hash_table_contains(GHashTable *h, const void *k) {
return g_hash_table_lookup(h, k) ? 1 : 0;
}
#endif
static inline void strmove(char **d, char **s) {
if (*d)

Loading…
Cancel
Save