diff options
author | Xavier Leroy <xavier.leroy@inria.fr> | 2015-04-17 16:29:06 +0200 |
---|---|---|
committer | Xavier Leroy <xavier.leroy@inria.fr> | 2015-04-17 16:29:06 +0200 |
commit | 3d751c114fe4611a5b72e160127be09cf6c6cfec (patch) | |
tree | 54a6a527fd2cbfac71c485f3cf34165bdad58351 /test | |
parent | 08b2b46f15e70b11c044e4e9a7c8438a96d57ed7 (diff) | |
download | compcert-3d751c114fe4611a5b72e160127be09cf6c6cfec.tar.gz compcert-3d751c114fe4611a5b72e160127be09cf6c6cfec.zip |
Define M_PI if not already there (it's not in <math.h> for strict ISO C99).
Diffstat (limited to 'test')
-rw-r--r-- | test/raytracer/config.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/raytracer/config.h b/test/raytracer/config.h index 49361dc5..009c125e 100644 --- a/test/raytracer/config.h +++ b/test/raytracer/config.h @@ -5,6 +5,10 @@ #include <stdlib.h> #include <string.h> +#ifndef M_PI +# define M_PI 3.14159265358979323846 +#endif + #ifdef SINGLE_PRECISION typedef float flt; #else |