Re: [PATCHES] earthdistance update for msvc - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [PATCHES] earthdistance update for msvc
Date
Msg-id 2679.1161288280@sss.pgh.pa.us
Whole thread Raw
Responses Re: [PATCHES] earthdistance update for msvc  ("Magnus Hagander" <mha@sollentuna.net>)
List pgsql-hackers
"Magnus Hagander" <mha@sollentuna.net> writes:
> A define is needed to expose the M_PI define from the system headers.

It seems like the other places where we depend on M_PI, we instead have

#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif

Perhaps that's a better solution?

            regards, tom lane

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Extending tablespaces
Next
From: Tom Lane
Date:
Subject: Re: [PATCHES] Win32 BYTE_ORDER