auto merge of #7734 : alexcrichton/rust/issue-3395, r=sanxiyn
Also ends up fixing one case in libstd. Closes #3395
This commit is contained in:
commit
d582eeb1ec
6 changed files with 16 additions and 31 deletions
|
|
@ -28,7 +28,7 @@ avoid hitting the mutex.
|
|||
use cast::{transmute};
|
||||
use clone::Clone;
|
||||
use kinds::Send;
|
||||
use libc::{c_void};
|
||||
use libc::{c_void, intptr_t};
|
||||
use option::{Option, Some, None};
|
||||
use ops::Drop;
|
||||
use unstable::sync::{Exclusive, exclusive};
|
||||
|
|
@ -228,7 +228,7 @@ fn key_ptr<T:Send>(key: GlobalDataKey<T>) -> uint {
|
|||
}
|
||||
|
||||
extern {
|
||||
fn rust_get_global_data_ptr() -> *mut int;
|
||||
fn rust_get_global_data_ptr() -> *mut intptr_t;
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue