]> Savannah Git Hosting - gnulib.git/commit
alignasof, stdalign: Fix a compilation error in C++ mode on FreeBSD 12.
authorBruno Haible <bruno@clisp.org>
Mon, 21 Aug 2023 15:23:41 +0000 (17:23 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 30 Aug 2023 10:00:38 +0000 (12:00 +0200)
commita0a66677c799569b6e253379cf25d4181c85dc1d
tree29ae261995008a0b7bae60db99cc278308aa8e38
parentdbc92ac3edf81abf862aa4428e1b7721a23be042
alignasof, stdalign: Fix a compilation error in C++ mode on FreeBSD 12.

* m4/stdalign.m4 (gl_ALIGNASOF): In C++ mode, prefer __builtin_offsetof
over offsetof when possible, since __builtin_offsetof works also when
<stddef.h> has not been fully included yet.
ChangeLog
m4/stdalign.m4