From 63763dc3d8fcbae5a02a731217a60ad93eb746a1 Mon Sep 17 00:00:00 2001 From: Yuxiao Mao Date: Fri, 10 May 2024 15:02:39 +0200 Subject: [PATCH] Add missing undef and fix HL_XBS for hlc --- src/hlc.h | 1 + src/hlc_main.c | 4 ++++ 2 files changed, 5 insertions(+) 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