From 7fde892bc191e4df9fcd52ce11d1502673498d97 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Fri, 21 Feb 2020 13:18:27 -0500 Subject: Assume that we have isinf(). Windows has this, and so do all other live platforms according to the buildfarm, so remove the configure probe and src/port/ substitution. This also lets us get rid of some configure probes that existed only to support src/port/isinf.c. I kept the port.h hack to force using __builtin_isinf() on clang, though. This is part of a series of commits to get rid of no-longer-relevant configure checks and dead src/port/ code. I'm committing them separately to make it easier to back out individual changes if they prove less portable than I expect. Discussion: https://postgr.es/m/15379.1582221614@sss.pgh.pa.us --- src/include/pg_config.h.in | 21 --------------------- src/include/port.h | 4 ---- 2 files changed, 25 deletions(-) (limited to 'src/include') diff --git a/src/include/pg_config.h.in b/src/include/pg_config.h.in index e7de8f3b2b4..002e0400083 100644 --- a/src/include/pg_config.h.in +++ b/src/include/pg_config.h.in @@ -104,9 +104,6 @@ /* Define to 1 if you have the `cbrt' function. */ #undef HAVE_CBRT -/* Define to 1 if you have the `class' function. */ -#undef HAVE_CLASS - /* Define to 1 if you have the `clock_gettime' function. */ #undef HAVE_CLOCK_GETTIME @@ -206,18 +203,6 @@ /* Define to 1 if you have the `fls' function. */ #undef HAVE_FLS -/* Define to 1 if you have the `fpclass' function. */ -#undef HAVE_FPCLASS - -/* Define to 1 if you have the `fp_class' function. */ -#undef HAVE_FP_CLASS - -/* Define to 1 if you have the `fp_class_d' function. */ -#undef HAVE_FP_CLASS_D - -/* Define to 1 if you have the header file. */ -#undef HAVE_FP_CLASS_H - /* Define to 1 if fseeko (and presumably ftello) exists and is declared. */ #undef HAVE_FSEEKO @@ -295,9 +280,6 @@ /* Define to 1 if you have the `history_truncate_file' function. */ #undef HAVE_HISTORY_TRUNCATE_FILE -/* Define to 1 if you have the header file. */ -#undef HAVE_IEEEFP_H - /* Define to 1 if you have the header file. */ #undef HAVE_IFADDRS_H @@ -325,9 +307,6 @@ /* Define to 1 if you have support for IPv6. */ #undef HAVE_IPV6 -/* Define to 1 if you have isinf(). */ -#undef HAVE_ISINF - /* Define to 1 if __builtin_constant_p(x) implies "i"(x) acceptance. */ #undef HAVE_I_CONSTRAINT__BUILTIN_CONSTANT_P diff --git a/src/include/port.h b/src/include/port.h index 3f5f90fa007..e40452c1ed0 100644 --- a/src/include/port.h +++ b/src/include/port.h @@ -352,9 +352,6 @@ extern int getpeereid(int sock, uid_t *uid, gid_t *gid); #endif #endif -#ifndef HAVE_ISINF -extern int isinf(double x); -#else /* * Glibc doesn't use the builtin for clang due to a *gcc* bug in a version * newer than the gcc compatibility clang claims to have. This would cause a @@ -370,7 +367,6 @@ extern int isinf(double x); #define isinf __builtin_isinf #endif /* __has_builtin(isinf) */ #endif /* __clang__ && !__cplusplus */ -#endif /* !HAVE_ISINF */ #ifndef HAVE_EXPLICIT_BZERO extern void explicit_bzero(void *buf, size_t len); -- cgit v1.2.3