]> git.ipfire.org Git - thirdparty/postgresql.git/commit
If a C23 compiler is detected, try asking for C17. REL9_6_STABLE github/REL9_6_STABLE
authorThomas Munro <tmunro@postgresql.org>
Wed, 27 Nov 2024 02:43:18 +0000 (15:43 +1300)
committerThomas Munro <tmunro@postgresql.org>
Wed, 27 Nov 2024 03:13:59 +0000 (16:13 +1300)
commit70cf253d18da103864037011bead1683a96502dc
tree1529fe83619c0b4b3e817f9476cf3428f7ee798e
parent12c8faaa7b59b99d56ddb730480645725bf4fa76
If a C23 compiler is detected, try asking for C17.

Branches before 16 can't be compiled with a C23 compiler (see
deprecation warnings silenced by commit f9a56e72, and non-back-patchable
changes made in 16 by commit 1c27d16e).  Test __STDC_VERSION__, and if
it's above C17 then try appending -std=gnu17.  The test is done with the
user's CFLAGS, so an acceptable language version can also be configured
manually that way.

This is done in branches 15 and older, back to 9.2, per policy of
keeping them buildable with modern tools.

Discussion: https://postgr.es/m/87o72eo9iu.fsf%40gentoo.org
configure
configure.in