diff options
-rw-r--r-- | freqshift~.c | 6 | ||||
-rw-r--r-- | wavewrap~.c | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/freqshift~.c b/freqshift~.c index fe99884..c97c183 100644 --- a/freqshift~.c +++ b/freqshift~.c @@ -5,10 +5,14 @@ #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 )
-#define M_PI 3.14159265358979323846
#endif
/* ------------------------ freqshift~ ----------------------------- */
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
|