From 445dd155b7dbf10e971e555bf51fa3cf3c385ae3 Mon Sep 17 00:00:00 2001 From: Christoffer Lerno Date: Sun, 8 Feb 2026 15:01:18 +0100 Subject: [PATCH] Another #2814 --- src/compiler/sema_decls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/sema_decls.c b/src/compiler/sema_decls.c index 916f3ba24..d35f52636 100644 --- a/src/compiler/sema_decls.c +++ b/src/compiler/sema_decls.c @@ -4224,7 +4224,7 @@ static inline bool sema_analyse_main_function(SemaContext *context, Decl *decl) RETURN_SEMA_ERROR(rtype_info, "Int return is required for a C style main."); } - if ((type == MAIN_TYPE_RAW || type == MAIN_TYPE_NO_ARGS) && is_int_return && sub_type != MAIN_SUBTYPE_WINMAIN) + if ((type == MAIN_TYPE_RAW || type == MAIN_TYPE_NO_ARGS) && is_int_return && !is_win32) { // Int return is pass-through at the moment. decl->is_export = true;