]> 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>
Mon, 21 Aug 2023 15:24:23 +0000 (17:24 +0200)
commit10ffa04786b32895df0d245ff5a7cf362d243b5e
tree3c7601c9fa0315a51364d3b7e3e61e1a49ed71d0
parentcdc6a65ae56043e3bfd598257b199ff1a1291272
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