Browse Source

g_hash_table_contains implementation for old glib version

git.mgm/mediaproxy-ng/2.2
Richard Fuchs 13 years ago
parent
commit
ad4cef0f37
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      daemon/aux.h

+ 6
- 0
daemon/aux.h View File

@ -60,6 +60,12 @@ void g_string_vprintf(GString *string, const gchar *format, va_list args);
void g_queue_clear(GQueue *); void g_queue_clear(GQueue *);
#endif #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) { static inline void strmove(char **d, char **s) {
if (*d) if (*d)


Loading…
Cancel
Save