[glib/wip/pwithnall/credentials-fix] gcredentials: Use __typeof__ in macOS code




commit e6bb0e2a311ccd33ae072fe5974f493307c5e82d
Author: Philip Withnall <pwithnall endlessos org>
Date:   Wed Oct 21 11:32:32 2020 +0100

    gcredentials: Use __typeof__ in macOS code
    
    `__typeof__` is defined on macOS, but `glib_typeof` is not.
    This fixes commit 5b2bee3f539.
    
    Signed-off-by: Philip Withnall <pwithnall endlessos org>

 gio/gcredentials.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gio/gcredentials.c b/gio/gcredentials.c
index 9423f9ef9..a46cd7059 100644
--- a/gio/gcredentials.c
+++ b/gio/gcredentials.c
@@ -225,7 +225,8 @@ g_credentials_to_string (GCredentials *credentials)
 {
   GString *ret;
 #if G_CREDENTIALS_USE_APPLE_XUCRED
-  glib_typeof (credentials->native.cr_ngroups) i;
+  /* __typeof__ is supported on macOS */
+  __typeof__ (credentials->native.cr_ngroups) i;
 #endif
 
   g_return_val_if_fail (G_IS_CREDENTIALS (credentials), NULL);


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