]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
#ifndef ALIGN - it is defined on *BSD
authorOndrej Filip <feela@network.cz>
Mon, 31 May 2004 13:58:38 +0000 (13:58 +0000)
committerOndrej Filip <feela@network.cz>
Mon, 31 May 2004 13:58:38 +0000 (13:58 +0000)
lib/birdlib.h

index 1904d666ef4aa469e06f78a290d199882762599c..faf8bc640a3d003d218266280ae9d79a9f82d747 100644 (file)
@@ -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 */