summaryrefslogtreecommitdiff
path: root/include/my_global.h
diff options
context:
space:
mode:
authormsvensson@pilot.blaudden <>2007-04-12 10:29:22 +0200
committermsvensson@pilot.blaudden <>2007-04-12 10:29:22 +0200
commitc405f94cfb352a0909f040a4ad62462b77e81bf8 (patch)
tree11e9b632e50351f2421b5c520bfe37cd28df78b8 /include/my_global.h
parentc3dc142df519806c47c74fa49d11fbdb601e5ea4 (diff)
downloadmariadb-git-c405f94cfb352a0909f040a4ad62462b77e81bf8.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.
Diffstat (limited to 'include/my_global.h')
-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