aboutsummaryrefslogtreecommitdiffstats
path: root/test/raytracer
diff options
context:
space:
mode:
authorXavier Leroy <xavier.leroy@inria.fr>2015-04-17 16:29:06 +0200
committerXavier Leroy <xavier.leroy@inria.fr>2015-04-17 16:29:06 +0200
commit3d751c114fe4611a5b72e160127be09cf6c6cfec (patch)
tree54a6a527fd2cbfac71c485f3cf34165bdad58351 /test/raytracer
parent08b2b46f15e70b11c044e4e9a7c8438a96d57ed7 (diff)
downloadcompcert-kvx-3d751c114fe4611a5b72e160127be09cf6c6cfec.tar.gz
compcert-kvx-3d751c114fe4611a5b72e160127be09cf6c6cfec.zip
Define M_PI if not already there (it's not in <math.h> for strict ISO C99).
Diffstat (limited to 'test/raytracer')
-rw-r--r--test/raytracer/config.h4
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