Commit aeb896d6 authored by unknown's avatar unknown

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.
parent fd14e73c
...@@ -812,7 +812,12 @@ typedef SOCKET_SIZE_TYPE size_socket; ...@@ -812,7 +812,12 @@ typedef SOCKET_SIZE_TYPE size_socket;
#define SSIZE_MAX ((~((size_t) 0)) / 2) #define SSIZE_MAX ((~((size_t) 0)) / 2)
#endif #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 #define isinf(X) 0
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment