Doc: improve commentary about providing our own definitions of M_PI.

This commit is contained in:
Tom Lane 2023-01-08 16:25:25 -05:00
parent cd9479af2a
commit 5687e7810f
3 changed files with 3 additions and 1 deletions

View File

@ -6,6 +6,7 @@
#include "utils/geo_decls.h" /* for Point */
/* X/Open (XSI) requires <math.h> to provide M_PI, but core POSIX does not */
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif

View File

@ -68,6 +68,7 @@
#include "port/pg_bitutils.h"
#include "portability/instr_time.h"
/* X/Open (XSI) requires <math.h> to provide M_PI, but core POSIX does not */
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif

View File

@ -17,8 +17,8 @@
#include <math.h>
/* X/Open (XSI) requires <math.h> to provide M_PI, but core POSIX does not */
#ifndef M_PI
/* From my RH5.2 gcc math.h file - thomas 2000-04-03 */
#define M_PI 3.14159265358979323846
#endif