win32: register SEH in startup code (i386 only)

Needed to handle signal() etc. with msvcrt
This commit is contained in:
grischka
2010-10-19 13:15:06 +02:00
parent 036d94112d
commit 9228842fa7
4 changed files with 126 additions and 2 deletions

View File

@ -15,11 +15,11 @@ typedef struct
} _startupinfo;
void __getmainargs(int *pargc, char ***pargv, char ***penv, int globb, _startupinfo*);
int main(int argc, char **argv, char **env);
int _start(void)
{
__TRY__
int argc; char **argv; char **env; int ret;
_startupinfo start_info = {0};
@ -32,4 +32,3 @@ int _start(void)
}
// =============================================