]> git.draconx.ca Git - dxcommon.git/commit
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)
commit14c0c9a9e5eeacc82904f4cc33e0842f5ee9ec44
tree3194bdb59f6ec1d71976b81ee204cf2c882a2721
parentcba6ab66683d20b46def45f691fa7c750f3f9a2b
Add configure tests for C11-ish _Alignof and _Alignas.

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.
m4/align.m4 [new file with mode: 0644]
tests/macros.at