Unix Technical Forum

earthdistance update for msvc

This is a discussion on earthdistance update for msvc within the Pgsql Patches forums, part of the PostgreSQL category; --> A define is needed to expose the M_PI define from the system headers. //Magnu <<earthdistance.diff>> s ---------------------------(end of broadcast)--------------------------- ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > Pgsql Patches

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-18-2008, 10:05 AM
Magnus Hagander
 
Posts: n/a
Default earthdistance update for msvc

A define is needed to expose the M_PI define from the system headers.

//Magnu <<earthdistance.diff>> s


---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-18-2008, 10:05 AM
Tom Lane
 
Posts: n/a
Default Re: earthdistance update for msvc

"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

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-18-2008, 10:05 AM
Magnus Hagander
 
Posts: n/a
Default Re: earthdistance update for msvc

> > 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?


Oh. I actually did that for my quick-n-dirty fix and thought it would be
rejected so I researched the other one :-) either one is fine by me.

//Magnus

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:39 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com