From 04237533533780b7ef5bb3dac4ac00882fae2651 Mon Sep 17 00:00:00 2001 From: makepost Date: Thu, 14 Feb 2019 03:36:54 +0200 Subject: [PATCH] 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. --- include/lmms_math.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/lmms_math.h b/include/lmms_math.h index ccf5fbf62f2..ad09117d478 100644 --- a/include/lmms_math.h +++ b/include/lmms_math.h @@ -34,7 +34,7 @@ #include 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