Commit d7549c47 authored by Tristan Gingold's avatar Tristan Gingold

wrc.h: do not define offsetof

parent 65ff0701
......@@ -33,8 +33,6 @@
/* Don't use abs from the library */
#define abs(x) ((x >= 0) ? x : -x)
#undef offsetof
#define offsetof(TYPE, MEMBER) ((long) &((TYPE *)0)->MEMBER)
#undef ARRAY_SIZE
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
......
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