git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b819dd7)
Windows doesn't have M_PI; define it ourselves when needed.
Mon, 4 Aug 2014 15:06:34 +0000 (18:06 +0300)
Mon, 4 Aug 2014 15:06:34 +0000 (18:06 +0300)
This should fix the Windows build, broken by commit ed802e7d.


diff --git a/contrib/pgbench/pgbench.c b/contrib/pgbench/pgbench.c
index ad55c3cc030bd255746f54526cc37d4c0729e67e..c0e5e24fff46184662e08e2b1c6334aa182b4499 100644 (file)
--- 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
*/
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /