From cd74a151b5a2498f0909074ebc9e8d8fbe6915b1 Mon Sep 17 00:00:00 2001 From: Heikki Linnakangas Date: Mon, 4 Aug 2014 18:06:34 +0300 Subject: [PATCH] Windows doesn't have M_PI; define it ourselves when needed. This should fix the Windows build, broken by commit ed802e7d. --- contrib/pgbench/pgbench.c | 4 ++++ 1 file changed, 4 insertions(+) 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 */ -- 2.40.0