Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2899790

Browse files
committed
Handle missing M_PI the same way we've been doing in the core code,
instead of inserting an MSVC dependency.
1 parentf6e00ae commit2899790

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

‎contrib/earthdistance/earthdistance.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
1-
/* $PostgreSQL: pgsql/contrib/earthdistance/earthdistance.c,v 1.12 2006/10/19 20:03:07 tgl Exp $ */
1+
/* $PostgreSQL: pgsql/contrib/earthdistance/earthdistance.c,v 1.13 2006/10/19 20:08:03 tgl Exp $ */
22

33
#include"postgres.h"
44

5-
#ifdefWIN32
6-
#define_USE_MATH_DEFINES
7-
#endif
85
#include<math.h>
96

107
#include"utils/geo_decls.h"/* for Pt */
118

9+
#ifndefM_PI
10+
#defineM_PI 3.14159265358979323846
11+
#endif
12+
1213

1314
PG_MODULE_MAGIC;
1415

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp