diff options
Diffstat (limited to 'src/include/math_func.h')
-rw-r--r-- | src/include/math_func.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/include/math_func.h b/src/include/math_func.h index c44075d..b3bbe7b 100644 --- a/src/include/math_func.h +++ b/src/include/math_func.h @@ -7,7 +7,19 @@ #define math_func_h #include <math.h> -#include "config.h" +#include "blip-config.h" + +#ifndef M_PI +# define M_PI 3.14159265358979323846 /* pi */ +#endif + +#ifndef M_LN10 +# define M_LN10 2.30258509299404568402 /* log_e(10) */ +#endif + +#ifndef M_LN2 +# define M_LN2 0.69314718055994530942 /* log_e(2) */ +#endif #ifdef HAVE_SINF /* Use float functions */ |