* added compilers lcc and bcc (linux86)
[mascara-docs.git] / compilers / linux86-0.16.17 / ld / align.h
blob52b1e8970b54889258c2240056947fdcb942a12e
1 /* align.h - memory alignment requirements for linker */
3 /* Copyright (C) 1994 Bruce Evans */
5 #ifndef S_ALIGNMENT
6 # define align(x)
7 #else
9 #if defined(__STDC__) && defined(_POSIX_SOURCE)
10 # define align(x) ((x)=(void *) \
11 (((ssize_t)(x) + (S_ALIGNMENT-1)) & ~(S_ALIGNMENT-1)))
12 #else
13 # define align(x) ((x)=(void *) \
14 ((char *)(x) + ((S_ALIGNMENT-(char)(x)) & (S_ALIGNMENT-1))))
15 #endif
16 #endif