summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorunknown <msvensson@pilot.blaudden>2007-04-12 10:29:22 +0200
committerunknown <msvensson@pilot.blaudden>2007-04-12 10:29:22 +0200
commitaeb896d601eb3626f4df5b9625a14233fb03417c (patch)
tree11e9b632e50351f2421b5c520bfe37cd28df78b8 /include
parentfd14e73c26ee54c54005389f6244a05dbe22dc6d (diff)
downloadmariadb-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.h7
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