Skip to content

Commit

Permalink
lmms_math: Fix build with musl
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
nykula authored and lukas-w committed Feb 22, 2019
1 parent 18d4787 commit e7720cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/lmms_math.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e7720cc

Please sign in to comment.