]> git.draconx.ca Git - dxcommon.git/commitdiff
Add configure tests for C11-ish _Alignof and _Alignas.
authorNick Bowler <nbowler@draconx.ca>
Mon, 19 Feb 2024 04:25:15 +0000 (23:25 -0500)
committerNick Bowler <nbowler@draconx.ca>
Fri, 23 Feb 2024 01:31:58 +0000 (20:31 -0500)
These features are pretty feasible to implement usable macro-based
fallbacks on pre-C11 compilers.  Add some basic configure probes
to check these C11 features and AC_DEFINE reasonable fallbacks
where unsupported.

If Autoconf already detected C11 support, do nothing (as it tests
these features already).  Compilers which support these in C11 mode
usually also support them in other conformance modes, so it is still
useful to probe these specifically.


No differences found