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

Lines changed: 1 addition & 0 deletions
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

Lines changed: 1 addition & 0 deletions
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

Lines changed: 1 addition & 1 deletion
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)
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