mirror of
https://github.com/rkd77/elinks.git
synced 2025-04-18 00:47:36 -04:00
[lists] __typeof__ instead of typeof
This commit is contained in:
parent
5f4191be4f
commit
af86fdd75b
@ -132,8 +132,8 @@ struct xlist_head {
|
|||||||
#define INIT_LIST_OF(element_T, x) LIST_OF(element_T) x = { D_LIST_HEAD(x) }
|
#define INIT_LIST_OF(element_T, x) LIST_OF(element_T) x = { D_LIST_HEAD(x) }
|
||||||
|
|
||||||
#ifdef HAVE_TYPEOF
|
#ifdef HAVE_TYPEOF
|
||||||
#define list_typeof(x) typeof(x)
|
#define list_typeof(x) __typeof__(x)
|
||||||
#define list_typeof2(x) typeof(x)
|
#define list_typeof2(x) __typeof__(x)
|
||||||
#else
|
#else
|
||||||
#define list_typeof(x) struct xlist_head *
|
#define list_typeof(x) struct xlist_head *
|
||||||
#define list_typeof2(x) void *
|
#define list_typeof2(x) void *
|
||||||
|
Loading…
x
Reference in New Issue
Block a user