Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5687e78

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

File tree

Expand file treeCollapse file tree

3 files changed

+3
-1
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+3
-1
lines changed

‎contrib/earthdistance/earthdistance.c

Copy file name to clipboardExpand all lines: contrib/earthdistance/earthdistance.c
+1Lines 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

Copy file name to clipboardExpand all lines: src/bin/pgbench/pgbench.c
+1Lines 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

Copy file name to clipboardExpand all lines: src/include/utils/float.h
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.