diff options
| author | Andre Weissflog <floooh@gmail.com> | 2020-09-06 15:03:20 +0200 |
|---|---|---|
| committer | Andre Weissflog <floooh@gmail.com> | 2020-09-06 15:03:20 +0200 |
| commit | 026e21594a4e45cece3a60dad558ca7be6b6dd07 (patch) | |
| tree | 7948c520f920298e0610d4d619018977f88391bb | |
| parent | 3d1ef51e0d3d2aa259bda0c3ceca34306dd635e7 (diff) | |
sokol_app.h uwp: use WinMain instead of wWinMain
| -rw-r--r-- | sokol_app.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sokol_app.h b/sokol_app.h index 81f57404..65ad2478 100644 --- a/sokol_app.h +++ b/sokol_app.h @@ -6846,11 +6846,10 @@ _SOKOL_PRIVATE void _sapp_uwp_run(const sapp_desc* desc) } #if !defined(SOKOL_NO_ENTRY) -int __stdcall wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PWSTR pCmdLine, int nCmdShow) -{ +int __stdcall WINAPI WinMain(_In_ HINSTANCE hInstance, _In_opt_ HINSTANCE hPrevInstance, _In_ LPSTR lpCmdLine, _In_ int nCmdShow) { _SOKOL_UNUSED(hInstance); _SOKOL_UNUSED(hPrevInstance); - _SOKOL_UNUSED(pCmdLine); + _SOKOL_UNUSED(lpCmdLine); _SOKOL_UNUSED(nCmdShow); sapp_desc desc = sokol_main(0, nullptr); _sapp_uwp_run(&desc); |