We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6e00ae commit 2899790Copy full SHA for 2899790
contrib/earthdistance/earthdistance.c
@@ -1,14 +1,15 @@
1
-/* $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 $ */
2
3
#include "postgres.h"
4
5
-#ifdef WIN32
6
-#define _USE_MATH_DEFINES
7
-#endif
8
#include <math.h>
9
10
#include "utils/geo_decls.h" /* for Pt */
11
+#ifndef M_PI
+#define M_PI 3.14159265358979323846
+#endif
12
+
13
14
PG_MODULE_MAGIC;
15
0 commit comments