projects
/
openwrt
/
svn-archive
/
archive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
libnl-tiny: fix a compiler warning that shows up with -pedantic
[openwrt/svn-archive/archive.git]
/
package
/
libnl-tiny
/
src
/
include
/
netlink
/
types.h
diff --git
a/package/libnl-tiny/src/include/netlink/types.h
b/package/libnl-tiny/src/include/netlink/types.h
index 6d8aaf89eef64104e434a5e72a78936f9f8829cb..de81ace11e03f10d775652811fd60d0f9157ab05 100644
(file)
--- 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;
};
unsigned int dp_line;
};
+#ifndef __GNUC__
+#define __extension__
+#endif
+
#define min_t(type,x,y) \
#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) \
#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
#endif