aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/float.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2020-08-15 11:23:18 +0200
committerPeter Eisentraut <peter@eisentraut.org>2020-08-15 11:27:41 +0200
commitbacda6a327efb820d0e9f3262b81e803b2d5702b (patch)
treede5fea1fdbab5b3b189a62af6a7a57cd58dd2fc8 /src/backend/utils/adt/float.c
parentb48cac3b10a02fea2bed684469dd4d36a6616405 (diff)
downloadpostgresql-bacda6a327efb820d0e9f3262b81e803b2d5702b.tar.gz
postgresql-bacda6a327efb820d0e9f3262b81e803b2d5702b.zip
Remove obsolete HAVE_BUGGY_SOLARIS_STRTOD
Fixed more than 10 years ago. Reviewed-by: Noah Misch <noah@leadboat.com> Discussion: https://www.postgresql.org/message-id/flat/aa266ede-baaa-f4e6-06cf-5b1737610e9a%402ndquadrant.com
Diffstat (limited to 'src/backend/utils/adt/float.c')
-rw-r--r--src/backend/utils/adt/float.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/backend/utils/adt/float.c b/src/backend/utils/adt/float.c
index ffd1ce8c761..429c9280c0c 100644
--- a/src/backend/utils/adt/float.c
+++ b/src/backend/utils/adt/float.c
@@ -271,18 +271,6 @@ float4in(PG_FUNCTION_ARGS)
errmsg("invalid input syntax for type %s: \"%s\"",
"real", orig_num)));
}
-#ifdef HAVE_BUGGY_SOLARIS_STRTOD
- else
- {
- /*
- * Many versions of Solaris have a bug wherein strtod sets endptr to
- * point one byte beyond the end of the string when given "inf" or
- * "infinity".
- */
- if (endptr != num && endptr[-1] == '\0')
- endptr--;
- }
-#endif /* HAVE_BUGGY_SOLARIS_STRTOD */
/* skip trailing whitespace */
while (*endptr != '\0' && isspace((unsigned char) *endptr))
@@ -499,18 +487,6 @@ float8in_internal_opt_error(char *num, char **endptr_p,
type_name, orig_string))),
have_error);
}
-#ifdef HAVE_BUGGY_SOLARIS_STRTOD
- else
- {
- /*
- * Many versions of Solaris have a bug wherein strtod sets endptr to
- * point one byte beyond the end of the string when given "inf" or
- * "infinity".
- */
- if (endptr != num && endptr[-1] == '\0')
- endptr--;
- }
-#endif /* HAVE_BUGGY_SOLARIS_STRTOD */
/* skip trailing whitespace */
while (*endptr != '\0' && isspace((unsigned char) *endptr))