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:
parent
f3c85328f1
commit
697dc565a9
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue