History

wincrt1.c: add definition of the __TRY__ if not defined Some i686-pc-mingw32-gcc don't know about __TRY__

seyko committed 11 years ago

Commit dfbb00c1 parent 859ce5e2 files · +16 −0Browse files

Unified · Split

2 files
  1. win32/lib/crt1.c +8 −0
  2. win32/lib/wincrt1.c +8 −0
win32/lib/crt1.c+8−0
@@ -16,6 +16,14 @@ · 15 unmodified lines
1616 #define _PC_53 0x00010000 // 53 bits
1717 #define _PC_64 0x00000000 // 64 bits
1818
19+#ifndef __TRY__
20+ #ifdef _WIN64
21+ #define __TRY__
22+ #else
23+ #define __TRY__ void __try__(void**), *_sehrec[6]; __try__(_sehrec);
24+ #endif
25+#endif
26+
1927 typedef struct
2028 {
2129 int newmode;
win32/lib/wincrt1.c+8−0
@@ -9,6 +9,14 @@ · 8 unmodified lines
99 void __set_app_type(int);
1010 void _controlfp(unsigned a, unsigned b);
1111
12+#ifndef __TRY__
13+ #ifdef _WIN64
14+ #define __TRY__
15+ #else
16+ #define __TRY__ void __try__(void**), *_sehrec[6]; __try__(_sehrec);
17+ #endif
18+#endif
19+
1220 int _winstart(void)
1321 {
1422 __TRY__

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t