mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Another #2814
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user