diff options
author | Calin Juravle <calin@google.com> | 2014-03-20 15:21:32 +0000 |
---|---|---|
committer | Calin Juravle <calin@google.com> | 2014-03-21 09:59:34 +0000 |
commit | c20de902875dcaebde0ccd0b7a8351598f254d4c (patch) | |
tree | cb4a8a75dd787d93bca11fc0a2da944a7fc2e76f /libc/stdio | |
parent | 849e162d3bedc5ca61bdf15486268b253b9f4e93 (diff) | |
download | android_bionic-c20de902875dcaebde0ccd0b7a8351598f254d4c.tar.gz android_bionic-c20de902875dcaebde0ccd0b7a8351598f254d4c.tar.bz2 android_bionic-c20de902875dcaebde0ccd0b7a8351598f254d4c.zip |
Remove ALIGNBYTES and ALIGN from <sys/param.h>
There are only three users of bionic definition of ALIGN and keeping it
in sys/param.h polutes the namespace.
I inline the definition in the the three places that's used.
Bug: 13400663
Change-Id: I565008e8426c38ffb07422f42cd8e547d53044e9
Diffstat (limited to 'libc/stdio')
-rw-r--r-- | libc/stdio/findfp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libc/stdio/findfp.c b/libc/stdio/findfp.c index 943c90a5f..926e5a18d 100644 --- a/libc/stdio/findfp.c +++ b/libc/stdio/findfp.c @@ -41,6 +41,9 @@ #include "glue.h" #include "private/thread_private.h" +#define ALIGNBYTES (sizeof(uintptr_t) - 1) +#define ALIGN(p) (((uintptr_t)(p) + ALIGNBYTES) &~ ALIGNBYTES) + int __sdidinit; #define NDYNAMIC 10 /* add ten more whenever necessary */ |