Changeset: 2a71660baa69 for MonetDB URL: https://dev.monetdb.org/hg/MonetDB/rev/2a71660baa69 Modified Files: geom/monetdb5/geod.c Branch: geo-update Log Message:
Define M_PI and M_PI_2 for MS compilation (math constants are not always defined) diffs (16 lines): diff --git a/geom/monetdb5/geod.c b/geom/monetdb5/geod.c --- a/geom/monetdb5/geod.c +++ b/geom/monetdb5/geod.c @@ -7,6 +7,12 @@ const double earth_radius = 6371.009; const double earth_radius_meters = 6371009; +#ifndef M_PI +#define M_PI ((double) 3.14159265358979323846) /* pi */ +#endif +#ifndef M_PI_2 +#define M_PI_2 ((double) 3.14159265358979323846) /* pi */ +#endif /* Converts a longitude value in degrees to radians */ static double _______________________________________________ checkin-list mailing list -- checkin-list@monetdb.org To unsubscribe send an email to checkin-list-le...@monetdb.org