From 91f7384fd240b4362e942fa21ebe31433355623e Mon Sep 17 00:00:00 2001 From: o9000 Date: Sat, 22 Apr 2017 22:21:13 +0200 Subject: [PATCH] Fix compilation under ubunt 12.04 --- src/util/common.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/util/common.h b/src/util/common.h index b4f34f1..676cfa0 100644 --- a/src/util/common.h +++ b/src/util/common.h @@ -139,4 +139,8 @@ GList *g_list_copy_deep(GList *list, GCopyFunc func, gpointer user_data); #define g_assert_null(expr) g_assert((expr) == NULL) #endif +#if !GLIB_CHECK_VERSION(2, 40, 0) +#define g_assert_nonnull(expr) g_assert((expr) != NULL) +#endif + #endif