Fix build error in libc_compat when using musl libc
Checking for the existence of and using __GLIBC_PREREQ can't be done in the same conditional. Contributed by listout. Differential Revision: https://developer.blender.org/D15690
This commit is contained in:
parent
8a205b4036
commit
7be7280c57
Notes:
blender-bot
2023-02-14 17:26:35 +01:00
Referenced by issue #88449, Blender LTS: Maintenance Task 2.93
|
@ -13,7 +13,8 @@
|
|||
# include <features.h>
|
||||
# include <math.h>
|
||||
|
||||
# if defined(__GLIBC_PREREQ) && __GLIBC_PREREQ(2, 31)
|
||||
# if defined(__GLIBC_PREREQ)
|
||||
# if __GLIBC_PREREQ(2, 31)
|
||||
|
||||
double __exp_finite(double x);
|
||||
double __exp2_finite(double x);
|
||||
|
@ -112,5 +113,6 @@ float __powf_finite(float x, float y)
|
|||
return powf(x, y);
|
||||
}
|
||||
|
||||
# endif /* __GLIBC_PREREQ */
|
||||
#endif /* __linux__ */
|
||||
# endif /* __GLIBC_PREREQ(2, 31) */
|
||||
# endif /* __GLIBC_PREREQ */
|
||||
#endif /* __linux__ */
|
||||
|
|
Loading…
Reference in New Issue