Message ID | ydd62ffrisz.fsf@manam.CeBiTec.Uni-Bielefeld.DE |
---|---|
State | New |
Headers | show |
diff --git a/libgo/runtime/go-matherr.c b/libgo/runtime/go-matherr.c --- a/libgo/runtime/go-matherr.c +++ b/libgo/runtime/go-matherr.c @@ -24,6 +24,14 @@ #define PI 3.14159265358979323846264338327950288419716939937510582097494459 +#ifndef INFINITY +#define INFINITY (__builtin_inff ()) +#endif + +#ifndef NAN +#define NAN (__builtin_nanf ("")) +#endif + int matherr (struct exception* e) {