diff options
Diffstat (limited to 'lib/birdlib.h')
-rw-r--r-- | lib/birdlib.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/birdlib.h b/lib/birdlib.h index 1904d66..faf8bc6 100644 --- a/lib/birdlib.h +++ b/lib/birdlib.h @@ -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 */ |