Replace __typeof__ with glib_typeof macro

g_has_typeof macro is wrongly in the public g_ namespace, internaly
symbols are usually in the glib_ namespace. This will also allow to
define glib_typeof differently on non-GNUC compilers (e.g. c++11
decltype).
This commit is contained in:
Xavier Claessens
2020-07-25 15:05:51 -04:00
parent 2954754cb3
commit 5b2bee3f53
7 changed files with 48 additions and 46 deletions

View File

@@ -225,7 +225,7 @@ g_credentials_to_string (GCredentials *credentials)
{
GString *ret;
#if G_CREDENTIALS_USE_APPLE_XUCRED
__typeof__(credentials->native.cr_ngroups) i;
glib_typeof (credentials->native.cr_ngroups) i;
#endif
g_return_val_if_fail (G_IS_CREDENTIALS (credentials), NULL);