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-a3cf2f4a3e73master
parent
d14a12a3e2
commit
39d45d2bfc
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue