diff options
| author | Michael Forney <mforney@mforney.org> | 2019-08-11 05:15:37 +0000 |
|---|---|---|
| committer | Thomas Haller <thaller@redhat.com> | 2019-08-16 07:42:03 +0200 |
| commit | 24e5b315a55f8388cf1045b1573587d29712f253 (patch) | |
| tree | 2d3794fd97d98210dab45ba14e7809f045417545 /python | |
| parent | 849140d3fd3d3a242c3d1793c6e2ea4bc66e5991 (diff) | |
| download | platform_external_libnl-24e5b315a55f8388cf1045b1573587d29712f253.tar.gz platform_external_libnl-24e5b315a55f8388cf1045b1573587d29712f253.tar.bz2 platform_external_libnl-24e5b315a55f8388cf1045b1573587d29712f253.zip | |
all: Use __typeof__ instead of typeof
This allows libnl to be built with -std=c99, which prevents the compiler
from using non-reserved identifiers for extensions.
Diffstat (limited to 'python')
| -rw-r--r-- | python/netlink/utils.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/netlink/utils.h b/python/netlink/utils.h index 7836c30..3ec2fb5 100644 --- a/python/netlink/utils.h +++ b/python/netlink/utils.h @@ -30,7 +30,7 @@ static inline void list_del(struct list_head *entry, struct list_head *prev) #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) #define container_of(ptr, type, member) ({ \ - const typeof( ((type *)0)->member ) *__mptr = (ptr); \ + const __typeof__( ((type *)0)->member ) *__mptr = (ptr);\ (type *)( (char *)__mptr - offsetof(type,member) );}) #ifdef DEBUG |
