opnsense-src/lib/libc/gen/ldexp.c
Alex Richardson 770517d41a s_scalbn.c: Add missing float.h include
This caused LDBL_MANT_DIG to not be defined and therefore the scalbnl
alias was not being emitted for double==long double platforms.

Fixes:		760b2ffc ("Update scalbn* functions to the musl versions")
Reported by:	Jenkins

(cherry picked from commit f5542795b9)
2021-04-22 10:42:28 +01:00

10 lines
237 B
C

#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
/*
* ldexp() and scalbn() are defined to be identical, but ldexp() lives in libc
* for backwards compatibility.
*/
#define scalbn ldexp
#include "../../msun/src/s_scalbn.c"
#undef scalbn