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

Appearance settings

Commit 2899790

Browse filesBrowse files
committed
Handle missing M_PI the same way we've been doing in the core code,
instead of inserting an MSVC dependency.
1 parent f6e00ae commit 2899790
Copy full SHA for 2899790

File tree

Expand file treeCollapse file tree

1 file changed

+5
-4
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-4
lines changed
Open diff view settings
Collapse file

‎contrib/earthdistance/earthdistance.c‎

Copy file name to clipboardExpand all lines: contrib/earthdistance/earthdistance.c
+5-4Lines 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-
#ifdef WIN32
6-
#define _USE_MATH_DEFINES
7-
#endif
85
#include <math.h>
96

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

9+
#ifndef M_PI
10+
#define M_PI 3.14159265358979323846
11+
#endif
12+
1213

1314
PG_MODULE_MAGIC;
1415

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.