mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-06-04 19:07:40 +00:00
Separate wmain() and main() implementations
Fixes https://github.com/libsdl-org/SDL/issues/7010
This commit is contained in:
parent
ca541789ea
commit
7f0801377b
1 changed files with 7 additions and 1 deletions
|
@ -64,14 +64,20 @@ typedef wchar_t* PWSTR;
|
||||||
/* This is where execution begins [console apps] */
|
/* This is where execution begins [console apps] */
|
||||||
#if defined( UNICODE ) && UNICODE
|
#if defined( UNICODE ) && UNICODE
|
||||||
int wmain(int argc, wchar_t *wargv[], wchar_t *wenvp)
|
int wmain(int argc, wchar_t *wargv[], wchar_t *wenvp)
|
||||||
|
{
|
||||||
|
(void)argc;
|
||||||
|
(void)wargv;
|
||||||
|
(void)wenvp;
|
||||||
|
return SDL_RunApp(0, NULL, SDL_main, NULL);
|
||||||
|
}
|
||||||
#else /* ANSI */
|
#else /* ANSI */
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
#endif
|
|
||||||
{
|
{
|
||||||
(void)argc;
|
(void)argc;
|
||||||
(void)argv;
|
(void)argv;
|
||||||
return SDL_RunApp(0, NULL, SDL_main, NULL);
|
return SDL_RunApp(0, NULL, SDL_main, NULL);
|
||||||
}
|
}
|
||||||
|
#endif /* UNICODE */
|
||||||
|
|
||||||
#endif /* _MSC_VER && ! __GDK__ */
|
#endif /* _MSC_VER && ! __GDK__ */
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue