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
16#define _PC_53 0x00010000 // 53 bits16#define _PC_53 0x00010000 // 53 bits
17#define _PC_64 0x00000000 // 64 bits17#define _PC_64 0x00000000 // 64 bits
18 18
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
19typedef struct27typedef struct
20{28{
21 int newmode;29 int newmode;
win32/lib/wincrt1.c+8−0
@@ -9,6 +9,14 @@ · 8 unmodified lines
9void __set_app_type(int);9void __set_app_type(int);
10void _controlfp(unsigned a, unsigned b);10void _controlfp(unsigned a, unsigned b);
11 11
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
12int _winstart(void)20int _winstart(void)
13{21{
14 __TRY__22 __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