From 3028e6a9676b876ab40ca71f1352ff3305098694 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Sat, 25 Jul 2020 15:10:58 -0400 Subject: [PATCH] gmem.h: Simplify condition where typeof is available --- glib/gmem.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glib/gmem.h b/glib/gmem.h index 10879d1ea..924299b20 100644 --- a/glib/gmem.h +++ b/glib/gmem.h @@ -213,7 +213,7 @@ g_steal_pointer (gpointer pp) } /* type safety */ -#if defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8)) && !defined(__cplusplus) && GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_58 +#if defined(glib_typeof) && GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_58 #define g_steal_pointer(pp) ((glib_typeof (*pp)) (g_steal_pointer) (pp)) #else /* __GNUC__ */ /* This version does not depend on gcc extensions, but gcc does not warn