diff options
author | David Robillard <d@drobilla.net> | 2011-12-27 16:01:41 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-12-27 16:01:41 +0000 |
commit | 84f43299f83c8ab62869ada2fb9a16a321099f43 (patch) | |
tree | 82d2ee7179d3ac6d761ac3b1a184ccac4b2419e1 /src/include/math_func.h | |
parent | 586a4db65dd7b3031be5473d272dad293e453e74 (diff) | |
download | blop.lv2-84f43299f83c8ab62869ada2fb9a16a321099f43.tar.gz blop.lv2-84f43299f83c8ab62869ada2fb9a16a321099f43.tar.bz2 blop.lv2-84f43299f83c8ab62869ada2fb9a16a321099f43.zip |
Fix compilation.
git-svn-id: http://svn.drobilla.net/lad/trunk/plugins/blip.lv2@3905 a436a847-0d15-0410-975c-d299462d15a1
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 */ |