]> git.draconx.ca Git - dxcommon.git/commit
Avoid _Alignas/_Alignof redefinition on FreeBSD.
authorNick Bowler <nbowler@draconx.ca>
Thu, 4 Apr 2024 03:57:32 +0000 (23:57 -0400)
committerNick Bowler <nbowler@draconx.ca>
Thu, 4 Apr 2024 04:26:15 +0000 (00:26 -0400)
commitf5df895ced92ac539cafd825efee98835d8bf0d3
treed589533abe0c725e2057a98f45116f3c381ab3be
parente2f2206552cd2153641c17908d938930fb15d3d4
Avoid _Alignas/_Alignof redefinition on FreeBSD.

It seems that FreeBSD provides _Alignof and _Alignas macros in
various standard header files, including <stddef.h>.  Since the
configure probes don't include any headers, these are missed,
resulting in conflicting macro definitions.

To fix this, all we really need to do is include some header
file in the test program, so these system versions are visible
when testing for _Alignas and _Alignof support.
m4/align.m4