aboutsummaryrefslogtreecommitdiff
path: root/wavewrap~.c
diff options
context:
space:
mode:
Diffstat (limited to 'wavewrap~.c')
-rw-r--r--wavewrap~.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/wavewrap~.c b/wavewrap~.c
index 36fde56..7ae7abe 100644
--- a/wavewrap~.c
+++ b/wavewrap~.c
@@ -6,11 +6,15 @@
#include "m_pd.h"
#include <math.h>
+
+#ifndef M_PI
+#define M_PI 3.14159265358979323846
+#endif
+
#ifdef _MSC_VER
#pragma warning( disable : 4244 )
#pragma warning( disable : 4305 )
#endif
-#define M_PI 3.14159265358979323846
// ------------------------ wavewrap~ -----------------------------
// sinus wavewrapper. produces an unusual distortion effect