From: Paul Brossier Date: Wed, 12 Aug 2015 16:01:26 +0000 (+0200) Subject: src/aubio_priv.h: define PI if M_PI isnt X-Git-Tag: 0.4.4~302^2~4 X-Git-Url: https://git.aubio.org/?p=aubio.git;a=commitdiff_plain;h=3ff50e5c1c8dd31182619057863bbdcda64f0373 src/aubio_priv.h: define PI if M_PI isnt --- diff --git a/src/aubio_priv.h b/src/aubio_priv.h index 197edf1b..b19520bd 100644 --- 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 */