mirror of
https://github.com/mpv-player/mpv
synced 2025-02-01 12:42:04 +00:00
win32: add WinMain
This commit is contained in:
parent
3ffb5c90ee
commit
4d5642887d
@ -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
Block a user