From 0916bc073e42bbf490c0b7686505dd893ef4382f Mon Sep 17 00:00:00 2001 From: Lukas W Date: Sun, 16 Nov 2014 01:51:29 +0100 Subject: [PATCH] Fix compile errors --- include/lmms_math.h | 7 ++++++- src/core/fft_helpers.cpp | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/include/lmms_math.h b/include/lmms_math.h index 78585d4c9..43f699718 100644 --- a/include/lmms_math.h +++ b/include/lmms_math.h @@ -31,7 +31,12 @@ #include "lmmsconfig.h" #include -#include +#include +using namespace std; + +#ifndef M_PI +# define M_PI 3.14159265358979323846 +#endif #if defined (LMMS_BUILD_WIN32) || defined (LMMS_BUILD_APPLE) #ifndef isnanf diff --git a/src/core/fft_helpers.cpp b/src/core/fft_helpers.cpp index e1ebc648b..0f9444aa6 100644 --- a/src/core/fft_helpers.cpp +++ b/src/core/fft_helpers.cpp @@ -25,7 +25,7 @@ #include "fft_helpers.h" -#include +#include /* returns biggest value from abs_spectrum[spec_size] array