aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--win32/lib/crt1.c8
-rw-r--r--win32/lib/wincrt1.c8
2 files changed, 16 insertions, 0 deletions
diff --git a/win32/lib/crt1.c b/win32/lib/crt1.c
index cb8bfc0..1fada8b 100644
--- a/win32/lib/crt1.c
+++ b/win32/lib/crt1.c
@@ -16,6 +16,14 @@
#define _PC_53 0x00010000 // 53 bits
#define _PC_64 0x00000000 // 64 bits
+#ifndef __TRY__
+ #ifdef _WIN64
+ #define __TRY__
+ #else
+ #define __TRY__ void __try__(void**), *_sehrec[6]; __try__(_sehrec);
+ #endif
+#endif
+
typedef struct
{
int newmode;
diff --git a/win32/lib/wincrt1.c b/win32/lib/wincrt1.c
index 663fd33..cec75d7 100644
--- a/win32/lib/wincrt1.c
+++ b/win32/lib/wincrt1.c
@@ -9,6 +9,14 @@
void __set_app_type(int);
void _controlfp(unsigned a, unsigned b);
+#ifndef __TRY__
+ #ifdef _WIN64
+ #define __TRY__
+ #else
+ #define __TRY__ void __try__(void**), *_sehrec[6]; __try__(_sehrec);
+ #endif
+#endif
+
int _winstart(void)
{
__TRY__