diff --git a/demos/gears.c b/demos/gears.c index 2045b3cd..bee91da6 100644 --- a/demos/gears.c +++ b/demos/gears.c @@ -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 diff --git a/demos/triangle.c b/demos/triangle.c index bac1cdc5..cc8af2e6 100644 --- a/demos/triangle.c +++ b/demos/triangle.c @@ -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