From 12ef27105d22b6d8c757fa38deab286c2f894eec Mon Sep 17 00:00:00 2001 From: Jamie Bullock Date: Tue, 18 Jun 2013 08:10:23 -0700 Subject: Define M_PI to 3.14159265358979323846264338327 on platforms where it is not provided by math.h --- examples/simpletest/simpletest.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/simpletest/simpletest.c b/examples/simpletest/simpletest.c index 07a2f69..1f3a85e 100644 --- a/examples/simpletest/simpletest.c +++ b/examples/simpletest/simpletest.c @@ -26,6 +26,10 @@ #include #include +#ifndef M_PI +#define M_PI 3.14159265358979323846264338327 +#endif + typedef enum waveform_type_ { SINE, -- cgit v1.2.3