diff options
| author | Even Rouault <even.rouault@mines-paris.org> | 2017-02-27 15:46:57 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-02-27 15:46:57 +0100 |
| commit | c8f8c22edb14550c7506103213d302ab91c1fc85 (patch) | |
| tree | 4cfc9d69ba5c8955863d1ddb9f7e2a4e9ca9df3b /src | |
| parent | b36451fff0bd69b4a14241a8007a0d40caaf8896 (diff) | |
| parent | 0ad4e2af7b3e188f71e77ca71a1aacc1fa1a7647 (diff) | |
| download | PROJ-c8f8c22edb14550c7506103213d302ab91c1fc85.tar.gz PROJ-c8f8c22edb14550c7506103213d302ab91c1fc85.zip | |
Merge pull request #487 from PositiveArrow/c11_compilation
C11 compilation
Diffstat (limited to 'src')
| -rw-r--r-- | src/projects.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/projects.h b/src/projects.h index be10268c..7a483d5f 100644 --- a/src/projects.h +++ b/src/projects.h @@ -102,9 +102,15 @@ extern double hypot(double, double); * the -ansi flag. */ #ifndef M_PI -#define M_PI 3.14159265358979310 -#define M_PI_2 1.57079632679489660 -#define M_PI_4 0.78539816339744828 +#define M_PI 3.14159265358979323846 +#define M_PI_2 1.57079632679489661923 +#define M_PI_4 0.78539816339744830962 +#define M_2_PI 0.63661977236758134308 +#endif + +/* M_SQRT2 might be missing */ +#ifndef M_SQRT2 +#define M_SQRT2 1.41421356237309504880 #endif /* some more useful math constants and aliases */ |
