mirror of
https://github.com/postgres/postgres.git
synced 2025-10-22 14:32:25 +03:00
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
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user