Commit 43ab51b 1 parent 9d4b9b1 commit 43ab51b Copy full SHA for 43ab51b
File tree 1 file changed +11
-1
lines changed
1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -25,8 +25,18 @@ cfg_if::cfg_if! {
25
25
extern "C" {
26
26
pub fn __chkstk( ) ;
27
27
}
28
- /// The probestack for Windows when compiled with MSVC
28
+ /// The probestack for 64bit Windows when compiled with MSVC (note the double underscore)
29
29
pub const PROBESTACK : unsafe extern "C" fn ( ) = __chkstk;
30
+ } else if #[ cfg( all(
31
+ target_os = "windows" ,
32
+ target_env = "msvc" ,
33
+ target_pointer_width = "32"
34
+ ) ) ] {
35
+ extern "C" {
36
+ pub fn _chkstk( ) ;
37
+ }
38
+ /// The probestack for 32bit Windows when compiled with MSVC (note the singular underscore)
39
+ pub const PROBESTACK : unsafe extern "C" fn ( ) = _chkstk;
30
40
} else if #[ cfg( all( target_os = "windows" , target_env = "gnu" ) ) ] {
31
41
extern "C" {
32
42
// ___chkstk (note the triple underscore) is implemented in compiler-builtins/src/x86_64.rs
You can’t perform that action at this time.
0 commit comments