summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2019-08-11 05:15:37 (GMT)
committerThomas Haller <thaller@redhat.com>2019-08-16 05:42:03 (GMT)
commit24e5b315a55f8388cf1045b1573587d29712f253 (patch)
tree2d3794fd97d98210dab45ba14e7809f045417545 /python
parent849140d3fd3d3a242c3d1793c6e2ea4bc66e5991 (diff)
downloadlibnl-24e5b315a55f8388cf1045b1573587d29712f253.zip
libnl-24e5b315a55f8388cf1045b1573587d29712f253.tar.gz
libnl-24e5b315a55f8388cf1045b1573587d29712f253.tar.bz2
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.h2
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