Fix build for older glib

This commit is contained in:
o9000
2015-12-27 14:29:03 +01:00
parent f8e4cdb56f
commit db44e0824a
3 changed files with 24 additions and 0 deletions

View File

@@ -100,4 +100,12 @@ void clear_pixmap(Pixmap p, int x, int y, int w, int h);
#define free_and_null(p) { free(p); p = NULL; }
#if !GLIB_CHECK_VERSION (2, 33, 4)
GList *g_list_copy_deep(GList *list, GCopyFunc func, gpointer user_data);
#endif
#if !GLIB_CHECK_VERSION (2, 38, 0)
#define g_assert_null(expr) g_assert((expr) == NULL)
#endif
#endif