From 3d751c114fe4611a5b72e160127be09cf6c6cfec Mon Sep 17 00:00:00 2001 From: Xavier Leroy Date: Fri, 17 Apr 2015 16:29:06 +0200 Subject: Define M_PI if not already there (it's not in for strict ISO C99). --- test/raytracer/config.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/raytracer') 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 #include +#ifndef M_PI +# define M_PI 3.14159265358979323846 +#endif + #ifdef SINGLE_PRECISION typedef float flt; #else -- cgit