Skip to content

Commit

Permalink
Fix mingw errors in hlc_main.c (#704)
Browse files Browse the repository at this point in the history
  • Loading branch information
tobil4sk authored Sep 6, 2024
1 parent 9888913 commit d255a90
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/hlc_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,16 +128,6 @@ static int throw_handler( int code ) {
}
#endif

#if defined(HL_WIN_DESKTOP) && !defined(_CONSOLE)
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) {
return wmain(__argc, __argv);
}
#elif defined(HL_XBS)
int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) {
return main(__argc, __argv);
}
#endif

#ifdef HL_WIN_DESKTOP
int wmain(int argc, uchar *argv[]) {
#else
Expand Down Expand Up @@ -171,3 +161,13 @@ int main(int argc, char *argv[]) {
sys_global_exit();
return (int)isExc;
}

#if defined(HL_WIN_DESKTOP) && !defined(_CONSOLE)
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) {
return wmain(__argc, __wargv);
}
#elif defined(HL_XBS)
int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) {
return main(__argc, __argv);
}
#endif

0 comments on commit d255a90

Please sign in to comment.