[glib: 3/5] gmem.h: Simplify condition where typeof is available




commit 3028e6a9676b876ab40ca71f1352ff3305098694
Author: Xavier Claessens <xavier claessens collabora com>
Date:   Sat Jul 25 15:10:58 2020 -0400

    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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]