Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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

+4
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)