]> git.ipfire.org Git - thirdparty/bind9.git/commit
Use a proper compiler test for constexpr support
authorAydın Mercan <aydin@isc.org>
Mon, 28 Jul 2025 13:19:41 +0000 (13:19 +0000)
committerAydın Mercan <aydin@isc.org>
Tue, 19 Aug 2025 13:02:32 +0000 (16:02 +0300)
commit6ae002f1ae94cb88bec69f960594828840fd4244
tree9118f18c80490032ee1cf0f22590c2b430a07ebc
parente8c3bcc0a2b5b734b8ea3629a0db0b44aff6468d
Use a proper compiler test for constexpr support

After GCC 15, C23 became the default version. [1]

Add a proper compiler test for constexpr support to ensure that GCC 15+
invoked with `c_std` set to `none` does not erroneously use the
constexpr shim.

This change does not affect the build in its default configuration
(which uses GNU C11); it is only meant to prepare the build system for
adding C23 elements to the code.

[1]: https://gcc.gnu.org/gcc-15/changes.html
meson.build