Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit5687e78

Browse files
committed
Doc: improve commentary about providing our own definitions of M_PI.
1 parentcd9479a commit5687e78

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
#ifndefM_PI
1011
#defineM_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
#ifndefM_PI
7273
#defineM_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
#ifndefM_PI
21-
/* From my RH5.2 gcc math.h file - thomas 2000-04-03 */
2222
#defineM_PI 3.14159265358979323846
2323
#endif
2424

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp