aboutsummaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authorseyko <seyko2@gmail.com>2015-03-03 22:35:33 +0300
committerseyko <seyko2@gmail.com>2015-03-03 22:35:33 +0300
commitdfbb00c1062849de5e3489359e17c318d4134d16 (patch)
treed06afd1590abc011dd8e699f2311ec828ace8bea /win32
parent859ce5e47f1d18f8c7e5b432b7b2dc07d25d817a (diff)
downloadtinycc-dfbb00c1062849de5e3489359e17c318d4134d16.tar.gz
tinycc-dfbb00c1062849de5e3489359e17c318d4134d16.tar.bz2
wincrt1.c: add definition of the __TRY__ if not defined
Some i686-pc-mingw32-gcc don't know about __TRY__
Diffstat (limited to 'win32')
-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__