summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut2025-01-05 10:30:48 +0000
committerPeter Eisentraut2025-01-05 10:34:28 +0000
commit9a8313dabe5ebb6a99d9a165d3c9bc3fa0213088 (patch)
tree29193cd48a5c95cc5450395faa8814521c9039d5
parent6549a02a51e88960cccb938999a43203e335d0cc (diff)
Remove useless configure check
The test for "decltype" as a variant of "typeof" apparently never worked (see also commit 3582b223d49), so remove it. Discussion: https://www.postgresql.org/message-id/flat/795b1c54-c64a-47f9-8fa3-880dcab59975%40eisentraut.org
-rw-r--r--config/c-compiler.m42
-rwxr-xr-xconfigure2
-rw-r--r--meson.build2
3 files changed, 3 insertions, 3 deletions
diff --git a/config/c-compiler.m4 b/config/c-compiler.m4
index e112fd45d48..8534cc54c13 100644
--- a/config/c-compiler.m4
+++ b/config/c-compiler.m4
@@ -142,7 +142,7 @@ fi])# PGAC_C_STATIC_ASSERT
AC_DEFUN([PGAC_C_TYPEOF],
[AC_CACHE_CHECK(for typeof, pgac_cv_c_typeof,
[pgac_cv_c_typeof=no
-for pgac_kw in typeof __typeof__ decltype; do
+for pgac_kw in typeof __typeof__; do
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],
[int x = 0;
$pgac_kw(x) y;
diff --git a/configure b/configure
index ac69bc63434..a0b5e10ca39 100755
--- a/configure
+++ b/configure
@@ -14344,7 +14344,7 @@ if ${pgac_cv_c_typeof+:} false; then :
$as_echo_n "(cached) " >&6
else
pgac_cv_c_typeof=no
-for pgac_kw in typeof __typeof__ decltype; do
+for pgac_kw in typeof __typeof__; do
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
diff --git a/meson.build b/meson.build
index 5ee0d73200c..fdc7b212732 100644
--- a/meson.build
+++ b/meson.build
@@ -2540,7 +2540,7 @@ endif
# Check if the C compiler understands typeof or a variant. Define
# HAVE_TYPEOF if so, and define 'typeof' to the actual key word.
-foreach kw : ['typeof', '__typeof__', 'decltype']
+foreach kw : ['typeof', '__typeof__']
if cc.compiles('''
int main(void)
{