Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 5687e78

Browse files
committed
Doc: improve commentary about providing our own definitions of M_PI.
1 parent cd9479a commit 5687e78

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

contrib/earthdistance/earthdistance.c

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
#include "utils/geo_decls.h" /* for Point */
88

9+
/* X/Open (XSI) requires <math.h> to provide M_PI, but core POSIX does not */
910
#ifndef M_PI
1011
#define M_PI 3.14159265358979323846
1112
#endif

src/bin/pgbench/pgbench.c

+1
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
#include "port/pg_bitutils.h"
6969
#include "portability/instr_time.h"
7070

71+
/* X/Open (XSI) requires <math.h> to provide M_PI, but core POSIX does not */
7172
#ifndef M_PI
7273
#define M_PI 3.14159265358979323846
7374
#endif

src/include/utils/float.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717

1818
#include <math.h>
1919

20+
/* X/Open (XSI) requires <math.h> to provide M_PI, but core POSIX does not */
2021
#ifndef M_PI
21-
/* From my RH5.2 gcc math.h file - thomas 2000-04-03 */
2222
#define M_PI 3.14159265358979323846
2323
#endif
2424

0 commit comments

Comments
 (0)