diff options
author | 1998-09-11 14:07:04 +0000 | |
---|---|---|
committer | 1998-09-11 14:07:04 +0000 | |
commit | 78d645656a477e5c216b8d8b18a9d85dbd648627 (patch) | |
tree | 9372d4136ee4eb5fa87bf7c24e8a301fc04bead3 | |
parent | f160a2bb8a38a5eda433e3ffca2d93671077a17f (diff) | |
download | bsdgames-darwin-78d645656a477e5c216b8d8b18a9d85dbd648627.tar.gz bsdgames-darwin-78d645656a477e5c216b8d8b18a9d85dbd648627.tar.zst bsdgames-darwin-78d645656a477e5c216b8d8b18a9d85dbd648627.zip |
be more precise for PI, as per PR5867
-rw-r--r-- | pom/pom.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $NetBSD: pom.c,v 1.10 1998/07/25 10:36:54 hubertf Exp $ */ +/* $NetBSD: pom.c,v 1.11 1998/09/11 14:07:04 hubertf Exp $ */ /* * Copyright (c) 1989, 1993 @@ -45,7 +45,7 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 1993\n\ #if 0 static char sccsid[] = "@(#)pom.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: pom.c,v 1.10 1998/07/25 10:36:54 hubertf Exp $"); +__RCSID("$NetBSD: pom.c,v 1.11 1998/09/11 14:07:04 hubertf Exp $"); #endif #endif /* not lint */ @@ -68,7 +68,9 @@ __RCSID("$NetBSD: pom.c,v 1.10 1998/07/25 10:36:54 hubertf Exp $"); #include <stdlib.h> #include <tzfile.h> -#define PI 3.141592654 +#ifndef PI +#define PI 3.14159265358979323846 +#endif #define EPOCH 85 /* really 1985 */ #define EPSILONg 279.611371 /* solar ecliptic long at EPOCH */ #define RHOg 282.680403 /* solar ecliptic long of perigee at EPOCH */ |