From: Ondrej Filip Date: Mon, 31 May 2004 13:58:38 +0000 (+0000) Subject: #ifndef ALIGN - it is defined on *BSD X-Git-Tag: v1.2.0~406 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d93fb7e6b9a1d2964bc926ca9ed7ab11f5003c1d;p=thirdparty%2Fbird.git #ifndef ALIGN - it is defined on *BSD --- diff --git a/lib/birdlib.h b/lib/birdlib.h index 1904d666e..faf8bc640 100644 --- a/lib/birdlib.h +++ b/lib/birdlib.h @@ -13,7 +13,9 @@ #define OFFSETOF(s, i) ((unsigned int)&((s *)0)->i) #define SKIP_BACK(s, i, p) ((s *)((char *)p - OFFSETOF(s, i))) +#ifndef ALIGN #define ALIGN(s, a) (((s)+a-1)&~(a-1)) +#endif /* Utility macros */