mirror of https://github.com/mpv-player/mpv
win32: add WinMain
This commit is contained in:
parent
5d4af0907c
commit
065aa2848d
|
@ -57,7 +57,7 @@ static void microsoft_nonsense(void)
|
|||
BASE_SEARCH_PATH_PERMANENT);
|
||||
}
|
||||
|
||||
int main(int argc_, char **argv_)
|
||||
int main(void)
|
||||
{
|
||||
microsoft_nonsense();
|
||||
|
||||
|
@ -92,3 +92,8 @@ int main(int argc_, char **argv_)
|
|||
talloc_free(argv_u8);
|
||||
return ret;
|
||||
}
|
||||
|
||||
int APIENTRY WinMain(HINSTANCE hInst, HINSTANCE hInstPrev, LPSTR cmdline, int cmdshow)
|
||||
{
|
||||
return main();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue