mirror of
https://github.com/MariaDB/server.git
synced 2026-04-23 08:45:33 +02:00
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.
This commit is contained in:
parent
24a04cee4a
commit
51af6a4077
6 changed files with 21 additions and 87 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue