0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 01:31:55 +00:00

#ifndef ALIGN - it is defined on *BSD

This commit is contained in:
Ondrej Filip 2004-05-31 13:58:38 +00:00
parent a60277b999
commit d93fb7e6b9

View 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 */