From 7f1b231f119adac303aa81e4206f503f9a557d20 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Sun, 26 Jun 2011 02:20:02 -0700 Subject: [PATCH] Provide definitions for M_LN2 and M_SQRT1_2 if they aren't otherwise defined. --- src/microcode/flonum.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/microcode/flonum.c b/src/microcode/flonum.c index f2c5033e4..1d50db419 100644 --- a/src/microcode/flonum.c +++ b/src/microcode/flonum.c @@ -30,6 +30,14 @@ USA. #include "prims.h" #include +#ifndef M_LN2 +# define M_LN2 0.693147180559945309417232121458176568 /* log e2 */ +#endif + +#ifndef M_SQRT1_2 +# define M_SQRT1_2 0.707106781186547524400844362104849039 /* 1/sqrt(2) */ +#endif + double arg_flonum (int arg_number) { -- 2.25.1