mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-11-20 10:08:43 +00:00
#ifndef ALIGN - it is defined on *BSD
This commit is contained in:
parent
a60277b999
commit
d93fb7e6b9
@ -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 */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user