Remove useless configure check
authorPeter Eisentraut <peter@eisentraut.org>
Sun, 5 Jan 2025 10:30:48 +0000 (11:30 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Sun, 5 Jan 2025 10:34:28 +0000 (11:34 +0100)
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

config/c-compiler.m4
configure
meson.build

index e112fd45d48669f05a90843a0f702336ef6ed3c2..8534cc54c132a92ff4c37349365225b5c697133a 100644 (file)
@@ -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;
index ac69bc6343434ce6daa4c9f19697add23bea9995..a0b5e10ca39b99de6215e235d7bcb5a03b98ecce 100755 (executable)
--- 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.  */
 
index 5ee0d73200cabea89b042ba20fc4e7e86bc52e85..fdc7b21273296f8082d69e6f6579740d83bd0ef6 100644 (file)
@@ -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)
 {