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