Content-Length: 259681 | pFad | http://github.com/postgrespro/postgres/commit/cd74a151b5a2498f0909074ebc9e8d8fbe6915b1

78 Windows doesn't have M_PI; define it ourselves when needed. · postgrespro/postgres@cd74a15 · GitHub
Skip to content

Commit cd74a15

Browse files
committed
Windows doesn't have M_PI; define it ourselves when needed.
This should fix the Windows build, broken by commit ed802e7.
1 parent b819dd7 commit cd74a15

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

contrib/pgbench/pgbench.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@
5353
#define INT64_MAX INT64CONST(0x7FFFFFFFFFFFFFFF)
5454
#endif
5555

56+
#ifndef M_PI
57+
#define M_PI 3.14159265358979323846
58+
#endif
59+
5660
/*
5761
* Multi-platform pthread implementations
5862
*/

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/cd74a151b5a2498f0909074ebc9e8d8fbe6915b1

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy