From: oetiker Date: Thu, 3 Aug 2006 22:21:37 +0000 (+0000) Subject: solaris 10 has isnan defined as a sun forte builtin ... gcc can not deal with this X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2db45801b2bbf282c56abb233abc33c797ac53a0;p=rrdtool-all.git solaris 10 has isnan defined as a sun forte builtin ... gcc can not deal with this this will replace isnan with an fpclass expression hopefully working around the problem git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2@865 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/program/configure.ac b/program/configure.ac index 56b9532f..e50796ed 100644 --- a/program/configure.ac +++ b/program/configure.ac @@ -103,6 +103,12 @@ char *strchr (), *strrchr (); # define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF) #endif +/* solaris 10 it defines isnan such that only forte can compile it ... bad bad */ +#if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS)) +# undef isnan +# define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN) +#endif + /* for OSF1 Digital Unix */ #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H)) # define HAVE_ISINF 1