projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df7be43
)
src/aubio_priv.h: define PI if M_PI isnt
author
Paul Brossier
<piem@piem.org>
Wed, 12 Aug 2015 16:01:26 +0000
(18:01 +0200)
committer
Paul Brossier
<piem@piem.org>
Wed, 12 Aug 2015 16:01:26 +0000
(18:01 +0200)
src/aubio_priv.h
patch
|
blob
|
history
diff --git
a/src/aubio_priv.h
b/src/aubio_priv.h
index
197edf1
..
b19520b
100644
(file)
--- a/
src/aubio_priv.h
+++ b/
src/aubio_priv.h
@@
-128,8
+128,12
@@
typedef enum {
#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 */