win32: add WinMain

This commit is contained in:
Kacper Michajłow 2024-05-02 03:58:17 +02:00
parent 5d4af0907c
commit 065aa2848d
1 changed files with 6 additions and 1 deletions

View File

@ -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();
}