aboutsummaryrefslogtreecommitdiff
path: root/wavewrap~.c
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2012-11-20 18:50:53 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2012-11-20 18:50:53 +0000
commit4fe194208df017320575ad6b161a73e6f44b6e07 (patch)
tree01212ecc29d6208399b61aaf1bc26d8e9e04b0d0 /wavewrap~.c
parentcb6781e80a8daebc0285ff3d1c8d8ab464182fca (diff)
if M_PI is not defined on any platform, define it
svn path=/trunk/externals/sigpack/; revision=16565
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