|
From: | Paul Eggert |
Subject: | Re: FLEXALIGNOF too pessimistic |
Date: | Thu, 18 May 2017 15:12:59 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.0 |
On 05/18/2017 02:57 PM, Bruno Haible wrote:
a) Cap this alignment at max_align_t. b) Use <stdalign.h>, as in the patch below (untested).
(a) sounds reasonable. I don't think (b) will be portable enough, because on some pre-C11 compilers the Gnulib substitute for _Alignof does not work on structure types containing a flexible array member.
[Prev in Thread] | Current Thread | [Next in Thread] |