summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2020-07-25 15:10:58 -0400
committerXavier Claessens <xavier.claessens@collabora.com>2020-10-14 14:52:32 -0400
commit3028e6a9676b876ab40ca71f1352ff3305098694 (patch)
tree661a7d3d09f1c604df1c042c4510b3232fe0a269
parenta1847d0d038d70054dd7ee91d6e3ce4d42c93c7a (diff)
downloadglib-3028e6a9676b876ab40ca71f1352ff3305098694.tar.gz
gmem.h: Simplify condition where typeof is available
-rw-r--r--glib/gmem.h2
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