From: Tobias Oetiker Date: Sun, 4 Jul 2010 20:59:49 +0000 (+0000) Subject: backport FP_* fixes and revert FPCLASSIFY fix since there the FP_* values are defines. X-Git-Tag: 1.4.4~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=22ddf5323cb7d266b0b7b6c5dcfcc58605d1ca5f;p=thirdparty%2Frrdtool-1.x.git backport FP_* fixes and revert FPCLASSIFY fix since there the FP_* values are defines. git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2101 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/src/rrd_config_bottom.h b/src/rrd_config_bottom.h index 4bf9d9cf..90ecc8e9 100644 --- a/src/rrd_config_bottom.h +++ b/src/rrd_config_bottom.h @@ -190,12 +190,12 @@ char *strchr (), *strrchr (); # define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF) #endif -#if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY)) +#if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_MINUS_INF) && defined(FP_PLUS_INF)) # define HAVE_ISINF 1 # define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF) #endif -#if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY)) +#if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE)) # define HAVE_ISINF 1 # define isinf(a) (fpclassify(a) == FP_INFINITE) #endif