~emersion/basu

d40b2ab5b2b21c84fa9d7252681a416fd5cf2637 — Kenny Levinsen 3 years ago ad08d79
basic/macro: Undef align on FreeBSD

This silences a lot of warnings.
1 files changed, 4 insertions(+), 0 deletions(-)

M src/basic/macro.h
M src/basic/macro.h => src/basic/macro.h +4 -0
@@ 70,6 70,10 @@
#define ALIGN4(l) (((l) + 3) & ~3)
#define ALIGN8(l) (((l) + 7) & ~7)

#ifdef __FreeBSD__
#undef ALIGN
#endif

#if __SIZEOF_POINTER__ == 8
#define ALIGN(l) ALIGN8(l)
#elif __SIZEOF_POINTER__ == 4