diff options
author | Elliott Hughes <enh@google.com> | 2021-01-11 11:51:29 -0800 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2021-01-11 11:51:29 -0800 |
commit | e1dc4f62eb0475244f69b04f77eeaba18ea179a8 (patch) | |
tree | cf222070f5e73bd961aa20f8e7350443f12e55d8 /libc/stdio/stdio.cpp | |
parent | 08959d98b1d695ba00b683b6d473f20a7daac0ff (diff) |
Fewer copies of ALIGN()/ALIGNBYTES.
Noticed while updating fts.c.
Bug: http://b/177003648
Test: treehugger
Change-Id: Ic3625c1c3af47c4dafb8ad686bbbddbc82b69b70
Diffstat (limited to 'libc/stdio/stdio.cpp')
-rw-r--r-- | libc/stdio/stdio.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libc/stdio/stdio.cpp b/libc/stdio/stdio.cpp index b8aced83b..c7b1ba459 100644 --- a/libc/stdio/stdio.cpp +++ b/libc/stdio/stdio.cpp @@ -57,8 +57,7 @@ #include "private/ErrnoRestorer.h" #include "private/thread_private.h" -#define ALIGNBYTES (sizeof(uintptr_t) - 1) -#define ALIGN(p) (((uintptr_t)(p) + ALIGNBYTES) &~ ALIGNBYTES) +#include "private/bsd_sys_param.h" // For ALIGN/ALIGNBYTES. #define NDYNAMIC 10 /* add ten more whenever necessary */ |