summaryrefslogtreecommitdiff
path: root/strings/strtod.c
diff options
context:
space:
mode:
authorkaa@polly.local <>2007-05-08 21:11:46 +0400
committerkaa@polly.local <>2007-05-08 21:11:46 +0400
commit51af6a4077133271cb3b925e918c27deb74d3647 (patch)
treebfee6cd214d13fed1ef6871b4ba7d00e9e5ef064 /strings/strtod.c
parent24a04cee4ac5b3ec5efdf8891b7043752bfb4ad1 (diff)
downloadmariadb-git-51af6a4077133271cb3b925e918c27deb74d3647.tar.gz
Fix for bug #28240: "isinf()" cannot be used in C++ for lack of prototype
Since isinf() portability across various platforms and compilers is a complicated question, we should not use it directly. Instead, the my_isinf() macro should be used, which is defined as an alias to the system-defined isinf() if it is safe to use, or a workaround implementation otherwise.
Diffstat (limited to 'strings/strtod.c')
-rw-r--r--strings/strtod.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/strings/strtod.c b/strings/strtod.c
index 15707a9b944..7196cafb2c9 100644
--- a/strings/strtod.c
+++ b/strings/strtod.c
@@ -194,7 +194,7 @@ double my_strtod(const char *str, char **end_ptr, int *error)
done:
*end_ptr= (char*) str; /* end of number */
- if (overflow || isinf(result))
+ if (overflow || my_isinf(result))
{
result= DBL_MAX;
*error= EOVERFLOW;