aboutsummaryrefslogtreecommitdiff
path: root/examples/simpletest
diff options
context:
space:
mode:
Diffstat (limited to 'examples/simpletest')
-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,