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

@ -70,11 +70,13 @@
#define __x86_64 1
#define USE_MINGW_SETJMP_TWO_ARGS
#define mingw_getsp tinyc_getbp
#define __TRY__
#else
#define __stdcall __attribute__((__stdcall__))
#define _X86_ 1
#define WIN32 1
#define _USE_32BIT_TIME_T
#define __TRY__ void __try__(void**), *_sehrec[6]; __try__(_sehrec);
#endif
/* in stddef.h */