1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-27 12:41:57 +03:00

Magic blocks don't do us any good unless we use 'em ... so install one

in every shared library.
This commit is contained in:
Tom Lane
2006-05-30 22:12:16 +00:00
parent e95703eac3
commit a0ffab351e
58 changed files with 160 additions and 47 deletions

View File

@ -1,4 +1,4 @@
/* $PostgreSQL: pgsql/contrib/earthdistance/earthdistance.c,v 1.10 2006/03/11 04:38:29 momjian Exp $ */
/* $PostgreSQL: pgsql/contrib/earthdistance/earthdistance.c,v 1.11 2006/05/30 22:12:12 tgl Exp $ */
#include "postgres.h"
@ -7,6 +7,8 @@
#include "utils/geo_decls.h" /* for Pt */
PG_MODULE_MAGIC;
/* Earth's radius is in statute miles. */
const double EARTH_RADIUS = 3958.747716;
const double TWO_PI = 2.0 * M_PI;