From 43189492d0a791ecbb11677c88366a7300e637b6 Mon Sep 17 00:00:00 2001 From: Lukas W Date: Sun, 16 Nov 2014 15:01:15 +0100 Subject: [PATCH] Remove M_PI definition, use F_PI --- include/lmms_math.h | 4 ---- src/core/fft_helpers.cpp | 4 ++-- src/gui/widgets/knob.cpp | 2 +- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/include/lmms_math.h b/include/lmms_math.h index 65a5a41ab..ef0066125 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