1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-28 03:06:20 -04:00

[lists] __typeof__ instead of typeof

This commit is contained in:
Witold Filipczyk 2022-02-22 22:23:22 +01:00
parent 5f4191be4f
commit af86fdd75b

View File

@ -132,8 +132,8 @@ struct xlist_head {
#define INIT_LIST_OF(element_T, x) LIST_OF(element_T) x = { D_LIST_HEAD(x) }
#ifdef HAVE_TYPEOF
#define list_typeof(x) typeof(x)
#define list_typeof2(x) typeof(x)
#define list_typeof(x) __typeof__(x)
#define list_typeof2(x) __typeof__(x)
#else
#define list_typeof(x) struct xlist_head *
#define list_typeof2(x) void *