Merge branch 'wip/pwithnall/credentials-fix' into 'master'

gmacros: Use __typeof__ when compiling with Clang

See merge request GNOME/glib!1714
This commit is contained in:
Emmanuele Bassi 2020-10-23 11:41:24 +00:00
commit 51f30ccb85

View File

@ -232,7 +232,9 @@
* This symbol is private.
*/
#undef glib_typeof
#if defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8)) && !defined(__cplusplus)
#if !defined(__cplusplus) && \
((defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8))) || \
defined(__clang__))
#define glib_typeof(t) __typeof__ (t)
#endif