From: Nick Bowler Date: Mon, 19 Feb 2024 04:25:15 +0000 (-0500) Subject: Add configure tests for C11-ish _Alignof and _Alignas. X-Git-Url: https://git.draconx.ca/gitweb/dxcommon.git/commitdiff_plain/14c0c9a9e5eeacc82904f4cc33e0842f5ee9ec44?hp=14c0c9a9e5eeacc82904f4cc33e0842f5ee9ec44 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. ---