OSDN Git Service
(root)
/
pg-rex
/
syncrep.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6e00ae
)
Handle missing M_PI the same way we've been doing in the core code,
author
Tom Lane
<tgl@sss.pgh.pa.us>
Thu, 19 Oct 2006 20:08:03 +0000
(20:08 +0000)
committer
Tom Lane
<tgl@sss.pgh.pa.us>
Thu, 19 Oct 2006 20:08:03 +0000
(20:08 +0000)
instead of inserting an MSVC dependency.
contrib/earthdistance/earthdistance.c
patch
|
blob
|
history
diff --git
a/contrib/earthdistance/earthdistance.c
b/contrib/earthdistance/earthdistance.c
index
b603704
..
ce1ca16
100644
(file)
--- a/
contrib/earthdistance/earthdistance.c
+++ b/
contrib/earthdistance/earthdistance.c
@@
-1,14
+1,15
@@
-/* $PostgreSQL: pgsql/contrib/earthdistance/earthdistance.c,v 1.1
2 2006/10/19 20:03:07
tgl Exp $ */
+/* $PostgreSQL: pgsql/contrib/earthdistance/earthdistance.c,v 1.1
3 2006/10/19 20:08:03
tgl Exp $ */
#include "postgres.h"
-#ifdef WIN32
-#define _USE_MATH_DEFINES
-#endif
#include <math.h>
#include "utils/geo_decls.h" /* for Pt */
+#ifndef M_PI
+#define M_PI 3.14159265358979323846
+#endif
+
PG_MODULE_MAGIC;