shithub: aubio

Download patch

ref: 3ff50e5c1c8dd31182619057863bbdcda64f0373
parent: df7be4385dc2c85d14e8c8c168c782e6b60eedb6
author: Paul Brossier <[email protected]>
date: Wed Aug 12 14:01:26 EDT 2015

src/aubio_priv.h: define PI if M_PI isnt

--- a/src/aubio_priv.h
+++ b/src/aubio_priv.h
@@ -128,8 +128,12 @@
 #define AUBIO_QUIT(_s)               exit(_s)
 #define AUBIO_SPRINTF                sprintf
 
-/* Libc shortcuts */
+/* pi and 2*pi */
+#ifndef M_PI
+#define PI         (3.14159265358979323846)
+#else
 #define PI         (M_PI)
+#endif
 #define TWO_PI     (PI*2.)
 
 /* aliases to math.h functions */