]> Savannah Git Hosting - gnulib.git/commit
alignasof, stdalign: Fix a compilation error on FreeBSD 12.0.
authorBruno Haible <bruno@clisp.org>
Tue, 24 Jan 2023 12:44:07 +0000 (13:44 +0100)
committerBruno Haible <bruno@clisp.org>
Tue, 24 Jan 2023 12:44:07 +0000 (13:44 +0100)
commitb323b5297757c5c904e6aff63454c777703361ce
treefc0be40648e3a56a282fa7de58193c4cc853790e
parentff67aad77ea107f8e23a236eeebb8c9f47d57a27
alignasof, stdalign: Fix a compilation error on FreeBSD 12.0.

* 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