File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 12
12
13
13
.text
14
14
15
- #if defined(__APPLE__) || defined(_WIN32 )
15
+ #if defined(__APPLE__) || defined(__WIN32__ )
16
16
.globl ___morestack
17
17
___morestack:
18
18
#else
@@ -21,20 +21,20 @@ ___morestack:
21
21
__morestack:
22
22
#endif
23
23
24
- #if defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__)
24
+ #if defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__) || defined(__WIN32__)
25
25
.cfi_startproc
26
26
#endif
27
27
28
28
pushl %ebp
29
29
30
- #if defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__)
30
+ #if defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__) || defined(__WIN32__)
31
31
.cfi_def_cfa_offset 8
32
32
.cfi_offset %ebp , -8
33
33
#endif
34
34
35
35
movl %esp ,%ebp // save esp
36
36
37
- #if defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__)
37
+ #if defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__) || defined(__WIN32__)
38
38
.cfi_def_cfa_register %ebp
39
39
#endif
40
40
@@ -47,6 +47,6 @@ __morestack:
47
47
48
48
ret
49
49
50
- #if defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__)
50
+ #if defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__) || defined(__WIN32__)
51
51
.cfi_endproc
52
52
#endif
Original file line number Diff line number Diff line change 97
97
#endif
98
98
.globl MORESTACK
99
99
100
- // FIXME: What about _WIN32 ?
100
+ // FIXME: What about __WIN32__ ?
101
101
#if defined(__linux__) || defined(__FreeBSD__)
102
102
.hidden MORESTACK
103
103
#else
111
111
#endif
112
112
113
113
MORESTACK:
114
- #if defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__)
114
+ #if defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__) || defined(__WIN32__)
115
115
.cfi_startproc
116
116
#endif
117
117
@@ -130,15 +130,15 @@ MORESTACK:
130
130
// __morestack, and an extra return address.
131
131
132
132
pushl %ebp
133
- #if defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__)
133
+ #if defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__) || defined(__WIN32__)
134
134
// The CFA is 20 bytes above the register that it is
135
135
// associated with for this frame (which will be %ebp)
136
136
.cfi_def_cfa_offset 20
137
137
// %ebp is -20 bytes from the CFA
138
138
.cfi_offset %ebp , -20
139
139
#endif
140
140
movl %esp , %ebp
141
- #if defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__)
141
+ #if defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__) || defined(__WIN32__)
142
142
// Calculate the CFA as an offset from %ebp
143
143
.cfi_def_cfa_register %ebp
144
144
#endif
@@ -232,7 +232,7 @@ MORESTACK:
232
232
233
233
jmpl *%eax
234
234
235
- #if defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__)
235
+ #if defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__) || defined(__WIN32__)
236
236
.cfi_endproc
237
237
#endif
238
238
You can’t perform that action at this time.
0 commit comments