Re: C11 max_align_t

2017-01-06 Thread Mark Kettenis
> From: "Todd C. Miller" > Date: Thu, 05 Jan 2017 15:50:02 -0700 > > I think you need to also define __CLANG_MAX_ALIGN_T_DEFINED and > perhaps _GCC_MAX_ALIGN_T to avoid libcxx from redefining max_align_t > as a different type. E.g. in src/lib/libcxx/include/stddef.h >

Re: C11 max_align_t

2017-01-05 Thread Todd C. Miller
I think you need to also define __CLANG_MAX_ALIGN_T_DEFINED and perhaps _GCC_MAX_ALIGN_T to avoid libcxx from redefining max_align_t as a different type. E.g. in src/lib/libcxx/include/stddef.h // Re-use the compiler's max_align_t where possible. #if !defined(__CLANG_MAX_ALIGN_T_DEFINED) &&

C11 max_align_t

2017-01-05 Thread Mark Kettenis
Diff below adds C11 support to the feature test macros in and uses those to conditionally define the max_align_t type in . All systems/compilers seem to use the same construct. See https://reviews.llvm.org/rL201729 for a bit more background. This will make it possible to remove clang's