diff options
author | Thomas Munro | 2022-08-07 00:42:11 +0000 |
---|---|---|
committer | Thomas Munro | 2022-08-07 00:42:41 +0000 |
commit | cbf4403134738245db48b306c62eb1258f2b2bd0 (patch) | |
tree | 8701627bd54d0a1fc23ac0180dc3608d019044f5 /src/include/port.h | |
parent | 24c3ce8f1c707f9eeb1f68cebd44c2516ff799c2 (diff) |
Simplify replacement code for strtof.
strtof() is in C99 and all targeted systems have it. We can remove the
configure probe and some dead code, but we still need replacement code
for a couple of systems that have known buggy implementations selected
via platform template.
Reviewed-by: Tom Lane <[email protected]>
Discussion: https://postgr.es/m/152683.1659830125%40sss.pgh.pa.us
Diffstat (limited to 'src/include/port.h')
-rw-r--r-- | src/include/port.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/include/port.h b/src/include/port.h index ad76384fb19..cec41eae713 100644 --- a/src/include/port.h +++ b/src/include/port.h @@ -387,10 +387,6 @@ extern int getpeereid(int sock, uid_t *uid, gid_t *gid); extern void explicit_bzero(void *buf, size_t len); #endif -#ifndef HAVE_STRTOF -extern float strtof(const char *nptr, char **endptr); -#endif - #ifdef HAVE_BUGGY_STRTOF extern float pg_strtof(const char *nptr, char **endptr); #define strtof(a,b) (pg_strtof((a),(b))) |