Re: earthdistance update for msvc

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-hackers(at)postgresql(dot)org, "Magnus Hagander" <mha(at)sollentuna(dot)net>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: earthdistance update for msvc
Date: 2006-10-19 20:04:40
Message-ID: 2679.1161288280@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

"Magnus Hagander" <mha(at)sollentuna(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2006-10-19 20:05:42 Re: Win32 BYTE_ORDER
Previous Message Tom Lane 2006-10-19 19:56:36 Re: Extending tablespaces

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2006-10-19 20:05:42 Re: Win32 BYTE_ORDER
Previous Message Magnus Hagander 2006-10-19 19:49:24 Re: Adminpack build fix