mirror of
https://github.com/mpv-player/mpv.git
synced 2026-05-07 20:02:49 +00:00
win32: add WinMain
This commit is contained in:
+6
-1
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user