summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2020-02-21 13:47:40 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2020-02-21 14:30:47 -0500
commitf88a058200a40032e88a8bfc1aea453c22d2dcb0 (patch)
tree3e08c0ededeb5e7daa84d30c67e079ac782f63bc /src/include
parent1200d71a09177b7e64167df440d0c9bd16111ebe (diff)
Assume that we have rint().
Windows has this since _MSC_VER >= 1200, and so do all other live platforms according to the buildfarm, so remove the configure probe and src/port/ substitution. 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
Diffstat (limited to 'src/include')
-rw-r--r--src/include/pg_config.h.in3
-rw-r--r--src/include/port.h4
2 files changed, 0 insertions, 7 deletions
diff --git a/src/include/pg_config.h.in b/src/include/pg_config.h.in
index ef4c175c984..e3e74728204 100644
--- a/src/include/pg_config.h.in
+++ b/src/include/pg_config.h.in
@@ -451,9 +451,6 @@
/* Define to 1 if you have the `readlink' function. */
#undef HAVE_READLINK
-/* Define to 1 if you have the `rint' function. */
-#undef HAVE_RINT
-
/* Define to 1 if you have the global variable
'rl_completion_append_character'. */
#undef HAVE_RL_COMPLETION_APPEND_CHARACTER
diff --git a/src/include/port.h b/src/include/port.h
index e40452c1ed0..3be994b43c7 100644
--- a/src/include/port.h
+++ b/src/include/port.h
@@ -385,10 +385,6 @@ extern float pg_strtof(const char *nptr, char **endptr);
extern char *mkdtemp(char *path);
#endif
-#ifndef HAVE_RINT
-extern double rint(double x);
-#endif
-
#ifndef HAVE_INET_ATON
#include <netinet/in.h>
#include <arpa/inet.h>