6 /* IEEE can be prevented from raising signals with fpsetmask(0) */
7 #undef MUST_DISABLE_FPMASK
9 /* IEEE math only works if SIGFPE gets actively set to IGNORE */
11 #undef MUST_DISABLE_SIGFPE
13 /* realloc does not support NULL as argument */
14 #undef NO_NULL_REALLOC
18 /* define strrchr, strchr and memcpy, memmove in terms of bsd funcs
19 make sure you are NOT using bcopy, index or rindex in the code */
26 # define strrchr rindex
28 char *strchr (), *strrchr ();
30 # define memcpy(d, s, n) bcopy ((s), (d), (n))
31 # define memmove(d, s, n) bcopy ((s), (d), (n))
37 # define rrd_realloc(a,b) ( (a) == NULL ? malloc( (b) ) : realloc( (a) , (b) ))
39 # define rrd_realloc(a,b) realloc((a), (b))
55 # include <fp_class.h>
59 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
61 # define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
64 /* for OSF1 Digital Unix */
65 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
67 # define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
70 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
72 # define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
75 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
77 # define isinf(a) (fpclassify(a) == FP_INFINITE)
81 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
83 # define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
86 #if (! defined (HAVE_FINITE) && defined (HAVE_ISFINITE))
87 # define HAVE_FINITE 1
88 # define finite(a) isfinite(a)
91 #if (! defined(HAVE_FINITE) && defined(HAVE_ISNAN) && defined(HAVE_ISINF))
92 # define HAVE_FINITE 1
93 # define finite(a) (! isnan(a) && ! isinf(a))
97 #error "Can't compile without finite function"
101 #error "Can't compile without isinf function"
104 #endif /* CONFIG_H */