gmem.h: Simplify condition where typeof is available

This commit is contained in:
Xavier Claessens 2020-07-25 15:10:58 -04:00
parent a1847d0d03
commit 3028e6a967

View File

@ -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