summaryrefslogtreecommitdiffstats
path: root/package/libnl-tiny/src
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-10-14 00:14:43 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-10-14 00:14:43 +0000
commit5f24fa9f3a8ac0af1b56d5f7de85cd0924a384c2 (patch)
tree52e23519c837934f3a4b5c7469f5d02b05ec0096 /package/libnl-tiny/src
parent02ada62fabc1533fe5915adf520506b556b9cf94 (diff)
libnl-tiny: fix a compiler warning that shows up with -pedantic
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23431 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/libnl-tiny/src')
-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 6d8aaf89e..de81ace11 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