Skip to content

Commit 2899790

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 parent f6e00ae commit 2899790

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-
#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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy