Skip to content

Commit

Permalink
Add missing undef and fix HL_XBS for hlc
Browse files Browse the repository at this point in the history
  • Loading branch information
yuxiaomao committed May 10, 2024
1 parent a7539d7 commit 63763dc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/hlc.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
#undef __SIGN
#undef far
#undef FAR
#undef GENERIC_READ

// disable some warnings triggered by HLC code generator

Expand Down
4 changes: 4 additions & 0 deletions src/hlc_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@ static int throw_handler( int code ) {
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
Expand Down

0 comments on commit 63763dc

Please sign in to comment.