mupdf: add missing 'with_libc' call

Ref #2286
This commit is contained in:
Norman Feske 2017-09-05 16:12:34 +02:00 committed by Christian Helmuth
parent e99f2d0595
commit a79378ff19
1 changed files with 5 additions and 2 deletions

View File

@ -182,7 +182,7 @@ class Pdf_view
void handle_key(int ascii)
{
pdfapp_onkey(&_pdfapp, ascii);
Libc::with_libc([&] () { pdfapp_onkey(&_pdfapp, ascii); });
}
};
@ -329,4 +329,7 @@ struct Main
};
void Libc::Component::construct(Libc::Env &env) { static Main main(env); }
void Libc::Component::construct(Libc::Env &env)
{
Libc::with_libc([&] () { static Main main(env); });
}