Fix win64 noreturn problem

On win64 the code would hang in longjump with previous change
This commit is contained in:
herman ten brugge 2024-02-28 07:37:09 +01:00
parent f9cb198aa8
commit 2656f8edcc

View File

@ -59,7 +59,7 @@ typedef struct rt_frame {
void *ip, *fp, *sp;
} rt_frame;
void __rt_exit(rt_frame *, int);
__attribute__((noreturn)) void __rt_exit(rt_frame *, int);
void exit(int code)
{
@ -69,7 +69,6 @@ void exit(int code)
f.fp = 0;
f.ip = exit;
__rt_exit(&f, code);
for (;;); // avoid noreturn warning
}
#ifndef _WIN32