]> git.draconx.ca Git - dxcommon.git/commitdiff
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)
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.


No differences found