From d40b2ab5b2b21c84fa9d7252681a416fd5cf2637 Mon Sep 17 00:00:00 2001 From: Kenny Levinsen Date: Sun, 20 Dec 2020 19:07:15 +0100 Subject: [PATCH] basic/macro: Undef align on FreeBSD This silences a lot of warnings. --- src/basic/macro.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/basic/macro.h b/src/basic/macro.h index 7c36310..84817b4 100644 --- a/src/basic/macro.h +++ b/src/basic/macro.h @@ -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 -- 2.45.2