libnl-tiny: fix a compiler warning that shows up with -pedantic
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 14 Oct 2010 00:14:43 +0000 (00:14 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 14 Oct 2010 00:14:43 +0000 (00:14 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23431 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/libnl-tiny/src/include/netlink/types.h

index 6d8aaf8..de81ace 100644 (file)
@@ -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
This page took 0.029027 seconds and 4 git commands to generate.