From aac5214afb95e17b83ef7f1d68d07e6f3f0f962c Mon Sep 17 00:00:00 2001 From: mnag Date: Sat, 18 Feb 2006 21:25:14 +0000 Subject: - Change nan("chars") to strtod("NAN(chars)", NULL) and remove dependency of gcc 3.3 - Bump PORTREVISION - portlint(1) PR: 93520 Submitted by: Frank W. Josellis --- astro/libnova/files/patch-src_hyperbolic_motion.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 astro/libnova/files/patch-src_hyperbolic_motion.c (limited to 'astro/libnova/files') diff --git a/astro/libnova/files/patch-src_hyperbolic_motion.c b/astro/libnova/files/patch-src_hyperbolic_motion.c new file mode 100644 index 000000000000..f5af5ce7154c --- /dev/null +++ b/astro/libnova/files/patch-src_hyperbolic_motion.c @@ -0,0 +1,17 @@ +--- src/hyperbolic_motion.c.orig Tue Jul 5 11:09:22 2005 ++++ src/hyperbolic_motion.c Sat Feb 18 02:17:12 2006 +@@ -69,12 +69,12 @@ + F = Z1 * G1; + Q3 = Q3 + F; + if (Z > 100 || fabs(F) > 10000) +- return nan("0"); ++ return strtod("NAN(0)", NULL); + if (fabs(F) > PREC) + goto next_z; + L++; + if (L > 100) +- return nan("0"); ++ return strtod("NAN(0)", NULL); + do + { + S1 = S; -- cgit