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