diff --git a/src/hlc.h b/src/hlc.h index 5ec8cd501..35c606495 100644 --- a/src/hlc.h +++ b/src/hlc.h @@ -50,6 +50,7 @@ #undef __SIGN #undef far #undef FAR +#undef GENERIC_READ // disable some warnings triggered by HLC code generator diff --git a/src/hlc_main.c b/src/hlc_main.c index 4c8dd8163..131213635 100644 --- a/src/hlc_main.c +++ b/src/hlc_main.c @@ -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