diff options
author | unknown <msvensson@pilot.blaudden> | 2007-04-12 10:29:22 +0200 |
---|---|---|
committer | unknown <msvensson@pilot.blaudden> | 2007-04-12 10:29:22 +0200 |
commit | aeb896d601eb3626f4df5b9625a14233fb03417c (patch) | |
tree | 11e9b632e50351f2421b5c520bfe37cd28df78b8 /include | |
parent | fd14e73c26ee54c54005389f6244a05dbe22dc6d (diff) | |
download | mariadb-git-aeb896d601eb3626f4df5b9625a14233fb03417c.tar.gz |
Bug#14862 undefined reference to `isinf' on SOLARIS - strings/strtod.c
- Rely only on HAVE_ISINF to determine if 'isinf' can be used.
include/my_global.h:
The test in configure.in determines if we can use "'isinf' after
having inluded math.h". If the test works HAVE_ISINF will be defined
and isinf can be used in the code.
When the configure test fails it's not possible to use 'isinf' only
by including math.h and thus 'isinf' will be defined to never return
that X is inifinite.
Diffstat (limited to 'include')
-rw-r--r-- | include/my_global.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/my_global.h b/include/my_global.h index 61c2afc541b..aa17d4539f8 100644 --- a/include/my_global.h +++ b/include/my_global.h @@ -812,7 +812,12 @@ typedef SOCKET_SIZE_TYPE size_socket; #define SSIZE_MAX ((~((size_t) 0)) / 2) #endif -#if !defined(HAVE_ISINF) && !defined(isinf) +#if !defined(HAVE_ISINF) +/* The configure check for "isinf with math.h" has failed */ +#ifdef isinf +#undef isinf +#endif +/* Define isinf to never say that X is infinite */ #define isinf(X) 0 #endif |