diff --git a/C/parser.c b/C/parser.c index c6fe79b0b..a879d2aee 100755 --- a/C/parser.c +++ b/C/parser.c @@ -672,14 +672,6 @@ ParseList(read_data *rd, JMPBUFF *FailBuff USES_REGS) return (o); } -#ifndef INFINITY -#define INFINITY (1.0/0.0) -#endif - -#ifndef NAN -#define NAN (0.0/0.0) -#endif - static Term ParseTerm(read_data *rd, int prio, JMPBUFF *FailBuff USES_REGS) { diff --git a/H/eval.h b/H/eval.h index 143dce452..78f6a2c1b 100644 --- a/H/eval.h +++ b/H/eval.h @@ -138,6 +138,14 @@ exceptions: #define PLMAXINT Int_MAX #define PLMININT Int_MIN +#ifndef INFINITY +#define INFINITY (1.0/0.0) +#endif + +#ifndef NAN +#define NAN (0.0/0.0) +#endif + /** * @addtogroup arithmetic_operators * @enum arith0_op constant operators