Remove M_PI definition, use F_PI
This commit is contained in:
@@ -34,10 +34,6 @@
|
||||
#include <cmath>
|
||||
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)
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
#include "fft_helpers.h"
|
||||
|
||||
#include <lmms_math.h>
|
||||
#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<length; i++ )
|
||||
{
|
||||
timebuffer[i]=timebuffer[i]*(alpha+(1-alpha)*cos(2*M_PI*i/((float)length-1.0)));
|
||||
timebuffer[i]=timebuffer[i]*(alpha+(1-alpha)*cos(2*F_PI*i/((float)length-1.0)));
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
@@ -305,7 +305,7 @@ void knob::setarcColor( const QColor & _c )
|
||||
|
||||
QLineF knob::calculateLine( const QPointF & _mid, float _radius, float _innerRadius ) const
|
||||
{
|
||||
const float rarc = m_angle * M_PI / 180.0;
|
||||
const float rarc = m_angle * F_PI / 180.0;
|
||||
const float ca = cos( rarc );
|
||||
const float sa = -sin( rarc );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user