diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2012-11-20 18:50:53 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2012-11-20 18:50:53 +0000 |
commit | 4fe194208df017320575ad6b161a73e6f44b6e07 (patch) | |
tree | 01212ecc29d6208399b61aaf1bc26d8e9e04b0d0 | |
parent | cb6781e80a8daebc0285ff3d1c8d8ab464182fca (diff) |
if M_PI is not defined on any platform, define it
svn path=/trunk/externals/sigpack/; revision=16565
-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
|