Skip to content
Snippets Groups Projects
Commit 28997903 authored by Tom Lane's avatar Tom Lane
Browse files

Handle missing M_PI the same way we've been doing in the core code,

instead of inserting an MSVC dependency.
parent f6e00ae1
No related branches found
No related tags found
No related merge requests found
/* $PostgreSQL: pgsql/contrib/earthdistance/earthdistance.c,v 1.12 2006/10/19 20:03:07 tgl Exp $ */
/* $PostgreSQL: pgsql/contrib/earthdistance/earthdistance.c,v 1.13 2006/10/19 20:08:03 tgl Exp $ */
#include "postgres.h"
#ifdef WIN32
#define _USE_MATH_DEFINES
#endif
#include <math.h>
#include "utils/geo_decls.h" /* for Pt */
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif
PG_MODULE_MAGIC;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment