diff options
author | Xavier Claessens <xavier.claessens@collabora.com> | 2020-07-25 15:10:58 -0400 |
---|---|---|
committer | Xavier Claessens <xavier.claessens@collabora.com> | 2020-10-14 14:52:32 -0400 |
commit | 3028e6a9676b876ab40ca71f1352ff3305098694 (patch) | |
tree | 661a7d3d09f1c604df1c042c4510b3232fe0a269 | |
parent | a1847d0d038d70054dd7ee91d6e3ce4d42c93c7a (diff) | |
download | glib-3028e6a9676b876ab40ca71f1352ff3305098694.tar.gz |
gmem.h: Simplify condition where typeof is available
-rw-r--r-- | glib/gmem.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 |