Skip to content

Commit 9a8313d

Browse files
committed
Remove useless configure check
The test for "decltype" as a variant of "typeof" apparently never worked (see also commit 3582b22), so remove it. Discussion: https://www.postgresql.org/message-id/flat/795b1c54-c64a-47f9-8fa3-880dcab59975%40eisentraut.org
1 parent 6549a02 commit 9a8313d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

config/c-compiler.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ fi])# PGAC_C_STATIC_ASSERT
142142
AC_DEFUN([PGAC_C_TYPEOF],
143143
[AC_CACHE_CHECK(for typeof, pgac_cv_c_typeof,
144144
[pgac_cv_c_typeof=no
145-
for pgac_kw in typeof __typeof__ decltype; do
145+
for pgac_kw in typeof __typeof__; do
146146
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],
147147
[int x = 0;
148148
$pgac_kw(x) y;

configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14344,7 +14344,7 @@ if ${pgac_cv_c_typeof+:} false; then :
1434414344
$as_echo_n "(cached) " >&6
1434514345
else
1434614346
pgac_cv_c_typeof=no
14347-
for pgac_kw in typeof __typeof__ decltype; do
14347+
for pgac_kw in typeof __typeof__; do
1434814348
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1434914349
/* end confdefs.h. */
1435014350

meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2540,7 +2540,7 @@ endif
25402540

25412541
# Check if the C compiler understands typeof or a variant. Define
25422542
# HAVE_TYPEOF if so, and define 'typeof' to the actual key word.
2543-
foreach kw : ['typeof', '__typeof__', 'decltype']
2543+
foreach kw : ['typeof', '__typeof__']
25442544
if cc.compiles('''
25452545
int main(void)
25462546
{

0 commit comments

Comments
 (0)