lmms_math: Fix build with musl

When deciding to polyfill glibc features, check if the standard library claims to be glibc, instead of enumerating platforms in the condition. Unlike master branch which in de3b344 changes math function calls to standard, stable-1.2 keeps their glibc names and fails to build on Linux with another libc such as musl.
This commit is contained in:
makepost
2019-02-14 03:36:54 +02:00
committed by Lukas W
parent 18d478782c
commit e7720cc8cb

View File

@@ -34,7 +34,7 @@
#include <cmath>
using namespace std;
#if defined (LMMS_BUILD_WIN32) || defined (LMMS_BUILD_APPLE) || defined(LMMS_BUILD_HAIKU) || defined (__FreeBSD__) || defined(__OpenBSD__)
#ifndef __GLIBC__
#ifndef isnanf
#define isnanf(x) isnan(x)
#endif