switch to tmpfile so it works on musl
This commit is contained in:
parent
e154997862
commit
d2f4528797
2 changed files with 89 additions and 87 deletions
4
libqbe.c
4
libqbe.c
|
@ -103,7 +103,9 @@ const char*
|
||||||
qbe_emit(Target target, const char* ssa)
|
qbe_emit(Target target, const char* ssa)
|
||||||
{
|
{
|
||||||
T = target;
|
T = target;
|
||||||
FILE *inf = fmemopen((void*)ssa, strlen(ssa), "r");
|
FILE *inf = tmpfile();
|
||||||
|
fputs(ssa, inf);
|
||||||
|
rewind(inf);
|
||||||
outf = tmpfile();
|
outf = tmpfile();
|
||||||
char* f = "-";
|
char* f = "-";
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue