lib9: make a p9frexp function wrapping system frexp
Under certain conditions it looks like frexp gets #defined to something else on macOS during system headers, which then breaks the declaration in libc.h.
This commit is contained in:
parent
fafa622a5b
commit
e0c4896ed4
3 changed files with 13 additions and 1 deletions
9
src/lib9/frexp.c
Normal file
9
src/lib9/frexp.c
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
#include <u.h>
|
||||
#define NOPLAN9DEFINES
|
||||
#include <libc.h>
|
||||
|
||||
double
|
||||
p9frexp(double d, int *i)
|
||||
{
|
||||
return frexp(d, i);
|
||||
}
|
||||
|
|
@ -22,6 +22,7 @@ FMTOFILES=\
|
|||
fmtstr.$O\
|
||||
fmtvprint.$O\
|
||||
fprint.$O\
|
||||
frexp.$O\
|
||||
nan64.$O\
|
||||
print.$O\
|
||||
runefmtstr.$O\
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue