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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy