aboutsummaryrefslogtreecommitdiff
path: root/libc/stdio/stdio.cpp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2021-01-11 21:50:40 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2021-01-11 21:50:40 +0000
commitb1ba762e34850582a1156ac56d280c8ce1980b28 (patch)
treede44db41b56528dbed9fc07329cac817143c55f8 /libc/stdio/stdio.cpp
parent4e67866510aa27445e9d699ed40d55163b66e95f (diff)
parente1dc4f62eb0475244f69b04f77eeaba18ea179a8 (diff)
Merge "Fewer copies of ALIGN()/ALIGNBYTES."
Diffstat (limited to 'libc/stdio/stdio.cpp')
-rw-r--r--libc/stdio/stdio.cpp3
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 */