From e1dc4f62eb0475244f69b04f77eeaba18ea179a8 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Mon, 11 Jan 2021 11:51:29 -0800 Subject: Fewer copies of ALIGN()/ALIGNBYTES. Noticed while updating fts.c. Bug: http://b/177003648 Test: treehugger Change-Id: Ic3625c1c3af47c4dafb8ad686bbbddbc82b69b70 --- libc/stdio/stdio.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libc/stdio/stdio.cpp') 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 */ -- cgit v1.2.3