demos: Use WinMain instead of wmain on Win32

We're going to want to build as a GUI app, so we need
to use real WinMain on Windows for this.

Signed-off-by: Joshua Ashton <joshua@froggi.es>
This commit is contained in:
Joshua Ashton 2020-06-15 22:05:35 +01:00 committed by Hans-Kristian Arntzen
parent f3c85328f1
commit 697dc565a9
2 changed files with 10 additions and 2 deletions

View File

@ -878,7 +878,11 @@ static int cxg_main(void)
}
#ifdef _WIN32
int wmain(void)
int WINAPI WinMain(
HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
#else
int main(void)
#endif

View File

@ -393,7 +393,11 @@ static int cxt_main(void)
}
#ifdef _WIN32
int wmain(void)
int WINAPI WinMain(
HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
#else
int main(void)
#endif