Revert "LADSPA: CAPS: fix compilation with MinGW GCC >= 5.0"

This reverts commit 14b2028438.
This commit is contained in:
Lukas W
2017-10-20 16:26:23 +02:00
parent ff958338e7
commit ad5884d2fe
3 changed files with 8 additions and 6 deletions

View File

@@ -7,7 +7,7 @@ IF(LMMS_BUILD_WIN64)
ADD_DEFINITIONS(-DLMMS_BUILD_WIN64)
ENDIF(LMMS_BUILD_WIN64)
SET_TARGET_PROPERTIES(caps PROPERTIES PREFIX "")
SET_TARGET_PROPERTIES(caps PROPERTIES COMPILE_FLAGS "-O2 -funroll-loops -Wno-write-strings -std=c++11")
SET_TARGET_PROPERTIES(caps PROPERTIES COMPILE_FLAGS "-O2 -funroll-loops -Wno-write-strings")
IF(LMMS_BUILD_WIN32)
ADD_CUSTOM_COMMAND(TARGET caps POST_BUILD COMMAND "${STRIP}" \"$<TARGET_FILE:caps>\")

View File

@@ -33,11 +33,15 @@
#define _USE_GNU 1
/* unlocking some standard math calls. */
#define __USE_ISOC99 1
#define __USE_ISOC9X 1
#define _ISOC99_SOURCE 1
#define _ISOC9X_SOURCE 1
#include <stdlib.h>
#include <string.h>
#include <cmath>
#include <math.h>
#include <assert.h>
#include <stdio.h>
@@ -180,7 +184,7 @@ class Plugin {
inline sample_t getport_unclamped (int i)
{
sample_t v = *ports[i];
return (std::isinf (v) || std::isnan(v)) ? 0 : v;
return (isinf (v) || isnan(v)) ? 0 : v;
}
/* get port value and clamp to port range */

View File

@@ -28,8 +28,6 @@
#ifndef _DSP_WINDOWS_H_
#define _DSP_WINDOWS_H_
#include <cmath>
namespace DSP {
/* prototypes for window value application ... */
@@ -149,7 +147,7 @@ kaiser (sample_t * s, int n, double beta)
double k = besseli ((beta * sqrt (1 - pow ((2 * i / (n - 1)), 2)))) / bb;
/* can you spell hack */
if (std::isinf(k) || std::isnan(k))
if (!isfinite (k) || isnan(k))
k = 0;
F (s[si], k);