1From 705490763fcc052defa2d49a5c5200775cd12c54 Mon Sep 17 00:00:00 2001 2From: Peter Seiderer <ps.report@gmx.net> 3Date: Wed, 4 Mar 2020 08:27:24 +0100 4Subject: [PATCH] c99_math: import isinf for uclibc based toolchains 5 6The same fix as for glibc >= 2.23 is needed for uclibc 7based toolchains. 8 9[Upstream suggested: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4042] 10Signed-off-by: Peter Seiderer <ps.report@gmx.net> 11--- 12 include/c99_math.h | 2 +- 13 1 file changed, 1 insertion(+), 1 deletion(-) 14 15diff --git a/include/c99_math.h b/include/c99_math.h 16index e906c26aa54..c8a73a2d2c7 100644 17--- a/include/c99_math.h 18+++ b/include/c99_math.h 19@@ -190,7 +190,7 @@ fpclassify(double x) 20 * undefines those functions, which in glibc 2.23, are defined as macros rather 21 * than functions as in glibc 2.22. 22 */ 23-#if __cplusplus >= 201103L && (__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 23)) 24+#if __cplusplus >= 201103L && (__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 23) || defined(__UCLIBC__)) 25 #include <cmath> 26 27 using std::fpclassify; 28-- 292.25.1 30 31