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:
@ -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;
|
||||
|
Reference in New Issue
Block a user