From dbb7600658d8ea633083ee99572622b04ef23a3f Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Thu, 29 Oct 2015 12:46:22 +0000 Subject: Use max_align_t from . Now that we build with -std=gnu11 and can rely on a compiler providing max_align_t in , we no longer need our own version libc_max_align_t. This patch removes it and replaces the single user with a use of max_align_t. Tested for x86_64 and x86 (testsuite, and that installed stripped shared libraries are unchanged by the patch for x86_64; for x86, I see some code reordering of no significance). * include/libc-internal.h (libc_max_align_t): Remove typedef. * include/scratch_buffer.h: Include instead of . (struct scratch_buffer): Use max_align_t instead of libc_max_align_t. --- include/scratch_buffer.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'include/scratch_buffer.h') diff --git a/include/scratch_buffer.h b/include/scratch_buffer.h index 6f92694bb8..1a50cdf647 100644 --- a/include/scratch_buffer.h +++ b/include/scratch_buffer.h @@ -58,17 +58,16 @@ */ #include +#include #include -#include - /* Scratch buffer. Must be initialized with scratch_buffer_init before its use. */ struct scratch_buffer { void *data; /* Pointer to the beginning of the scratch area. */ size_t length; /* Allocated space at the data pointer, in bytes. */ char __space[1024] - __attribute__ ((aligned (__alignof__ (libc_max_align_t)))); + __attribute__ ((aligned (__alignof__ (max_align_t)))); }; /* Initializes *BUFFER so that BUFFER->data points to BUFFER->__space -- cgit v1.2.3