Commit fe7f6571 authored by Adam Wujek's avatar Adam Wujek Committed by Adam Wujek

include/wrc.h: add htons and htonl to wrpc

Before it was only in PPSI
Signed-off-by: 's avatarAdam Wujek <adam.wujek@creotech.pl>
parent f536a444
......@@ -30,6 +30,14 @@
_a < _b ? _a : _b; })
#endif
#ifndef htons
# define htons(x) (x)
#endif
#ifndef htonl
# define htonl(x) (x)
#endif
#undef offsetof
#define offsetof(TYPE, MEMBER) ((long) &((TYPE *)0)->MEMBER)
#undef ARRAY_SIZE
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment