summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--package/libnl-tiny/src/include/netlink/types.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/package/libnl-tiny/src/include/netlink/types.h b/package/libnl-tiny/src/include/netlink/types.h
index 6d8aaf89ee..de81ace11e 100644
--- a/package/libnl-tiny/src/include/netlink/types.h
+++ b/package/libnl-tiny/src/include/netlink/types.h
@@ -108,10 +108,14 @@ struct nl_dump_params
unsigned int dp_line;
};
+#ifndef __GNUC__
+#define __extension__
+#endif
+
#define min_t(type,x,y) \
- ({ type __x = (x); type __y = (y); __x < __y ? __x: __y; })
+ __extension__({ type __x = (x); type __y = (y); __x < __y ? __x: __y; })
#define max_t(type,x,y) \
- ({ type __x = (x); type __y = (y); __x > __y ? __x: __y; })
+ __extension__({ type __x = (x); type __y = (y); __x > __y ? __x: __y; })
#endif