#ifndef ALIGN - it is defined on *BSD
This commit is contained in:
parent
a60277b999
commit
d93fb7e6b9
1 changed files with 2 additions and 0 deletions
|
@ -13,7 +13,9 @@
|
||||||
|
|
||||||
#define OFFSETOF(s, i) ((unsigned int)&((s *)0)->i)
|
#define OFFSETOF(s, i) ((unsigned int)&((s *)0)->i)
|
||||||
#define SKIP_BACK(s, i, p) ((s *)((char *)p - OFFSETOF(s, i)))
|
#define SKIP_BACK(s, i, p) ((s *)((char *)p - OFFSETOF(s, i)))
|
||||||
|
#ifndef ALIGN
|
||||||
#define ALIGN(s, a) (((s)+a-1)&~(a-1))
|
#define ALIGN(s, a) (((s)+a-1)&~(a-1))
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Utility macros */
|
/* Utility macros */
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue