Browse Source

Build: add more libc compatibility functions for upcoming libraries update

These are needed by the x264 library.
master
Brecht Van Lommel 2 years ago
parent
commit
a90b69d065
  1. 12
      intern/libc_compat/libc_compat.c

12
intern/libc_compat/libc_compat.c

@ -28,6 +28,7 @@
# if defined(__GLIBC_PREREQ) && __GLIBC_PREREQ(2, 31)
double __exp_finite(double x);
double __exp2_finite(double x);
double __acos_finite(double x);
double __asin_finite(double x);
double __log2_finite(double x);
@ -35,6 +36,7 @@ double __log10_finite(double x);
double __log_finite(double x);
double __pow_finite(double x, double y);
float __expf_finite(float x);
float __exp2f_finite(float x);
float __acosf_finite(float x);
float __asinf_finite(float x);
float __log2f_finite(float x);
@ -47,6 +49,11 @@ double __exp_finite(double x)
return exp(x);
}
double __exp2_finite(double x)
{
return exp2(x);
}
double __acos_finite(double x)
{
return acos(x);
@ -82,6 +89,11 @@ float __expf_finite(float x)
return expf(x);
}
float __exp2f_finite(float x)
{
return exp2f(x);
}
float __acosf_finite(float x)
{
return acosf(x);

Loading…
Cancel
Save