1
0
mirror of https://github.com/MariaDB/server.git synced 2025-09-02 09:41:40 +03:00

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.
This commit is contained in:
unknown
2007-04-12 10:29:22 +02:00
parent fd14e73c26
commit aeb896d601

View File

@@ -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