]> Savannah Git Hosting - gnulib.git/commit
stdalign: Fix a compilation error on FreeBSD 12.0.
authorBruno Haible <bruno@clisp.org>
Tue, 24 Jan 2023 12:36:11 +0000 (13:36 +0100)
committerBruno Haible <bruno@clisp.org>
Tue, 24 Jan 2023 12:36:11 +0000 (13:36 +0100)
commit1f4fe409ea4379c3e537507822151e135be758d8
tree3e3048a19245bff22f81d8eba9b9a2160ff5026b
parent0f80726cd33395e0d2f1ff173bc5d5713ee2c228
stdalign: Fix a compilation error on FreeBSD 12.0.

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