From: Heikki Linnakangas Date: Mon, 4 Aug 2014 15:06:34 +0000 (+0300) Subject: Windows doesn't have M_PI; define it ourselves when needed. X-Git-Tag: REL9_5_ALPHA1~1661 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cd74a151b5a2498f0909074ebc9e8d8fbe6915b1;p=postgresql Windows doesn't have M_PI; define it ourselves when needed. This should fix the Windows build, broken by commit ed802e7d. --- diff --git a/contrib/pgbench/pgbench.c b/contrib/pgbench/pgbench.c index ad55c3cc03..c0e5e24fff 100644 --- a/contrib/pgbench/pgbench.c +++ b/contrib/pgbench/pgbench.c @@ -53,6 +53,10 @@ #define INT64_MAX INT64CONST(0x7FFFFFFFFFFFFFFF) #endif +#ifndef M_PI +#define M_PI 3.14159265358979323846 +#endif + /* * Multi-platform pthread implementations */