Added stubs for fscanf(3) and mbtowc(3).

This helps gzip build.
This commit is contained in:
Jonas 'Sortie' Termansen 2012-05-29 22:14:58 +02:00
parent 622e0176e3
commit 6eb6a14ace
1 changed files with 12 additions and 0 deletions

View File

@ -367,6 +367,18 @@ retry:
{
return 0x10000;
}
extern "C" int fscanf(FILE* /*fp*/, const char* /*format*/, ...)
{
fprintf(stderr, "fscanf(3) is not implemented\n");
abort();
}
extern "C" int mbtowc(wchar_t* /*pwd*/, const char* /*s*/, size_t /*n*/)
{
fprintf(stderr, "mbtowc(3) is not implemented\n");
abort();
}
#endif
}