aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorJamie Bullock <jamie@jamiebullock.com>2013-06-18 08:10:23 -0700
committerJamie Bullock <jamie@jamiebullock.com>2013-06-18 08:10:23 -0700
commit12ef27105d22b6d8c757fa38deab286c2f894eec (patch)
tree8cb6d0d82a3ebff548c5303c3296f41985cf1e61 /examples
parentab2b612c64623de1a77d3c257d9ae8ea12aa6ea1 (diff)
downloadLibXtract-12ef27105d22b6d8c757fa38deab286c2f894eec.tar.gz
LibXtract-12ef27105d22b6d8c757fa38deab286c2f894eec.tar.bz2
LibXtract-12ef27105d22b6d8c757fa38deab286c2f894eec.zip
Define M_PI to 3.14159265358979323846264338327 on platforms where it is not provided by math.h
Diffstat (limited to 'examples')
-rw-r--r--examples/simpletest/simpletest.c4
1 files changed, 4 insertions, 0 deletions
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 <stdlib.h>
#include <math.h>
+#ifndef M_PI
+#define M_PI 3.14159265358979323846264338327
+#endif
+
typedef enum waveform_type_
{
SINE,