diff --git a/include/lmms_math.h b/include/lmms_math.h index 43f699718..ea13f94b7 100644 --- a/include/lmms_math.h +++ b/include/lmms_math.h @@ -34,10 +34,6 @@ #include using namespace std; -#ifndef M_PI -# define M_PI 3.14159265358979323846 -#endif - #if defined (LMMS_BUILD_WIN32) || defined (LMMS_BUILD_APPLE) #ifndef isnanf #define isnanf(x) isnan(x) diff --git a/src/core/fft_helpers.cpp b/src/core/fft_helpers.cpp index 0f9444aa6..71e84a8db 100644 --- a/src/core/fft_helpers.cpp +++ b/src/core/fft_helpers.cpp @@ -25,7 +25,7 @@ #include "fft_helpers.h" -#include +#include "lmms_math.h" /* returns biggest value from abs_spectrum[spec_size] array @@ -73,7 +73,7 @@ int hanming(float *timebuffer, int length, WINDOWS type) for ( i=0; i