File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ use std::os::raw::c_uint;
14
14
use crate :: Encode ;
15
15
16
16
use objc_sys;
17
- #[ cfg( target_vendor = "apple" ) ]
18
17
#[ allow( deprecated) ]
19
18
pub use objc_sys:: object_dispose;
20
19
pub use objc_sys:: {
Original file line number Diff line number Diff line change @@ -25,7 +25,6 @@ extern "C" {
25
25
#[ cfg( apple) ]
26
26
pub fn object_copy ( obj : * const objc_object , size : usize ) -> * mut objc_object ;
27
27
#[ deprecated = "Not needed since ARC" ]
28
- #[ cfg( apple) ]
29
28
pub fn object_dispose ( obj : * mut objc_object ) -> * mut objc_object ;
30
29
#[ deprecated = "Not needed since ARC" ]
31
30
pub fn object_setInstanceVariable (
Original file line number Diff line number Diff line change 1
1
use core:: ffi:: c_void;
2
- use std:: os:: raw:: c_char;
3
2
#[ cfg( apple) ]
4
- use std:: os:: raw:: { c_int, c_uint} ;
3
+ use std:: os:: raw:: c_uint;
4
+ use std:: os:: raw:: { c_char, c_int} ;
5
5
6
6
#[ cfg( apple) ]
7
7
use crate :: objc_class;
@@ -49,11 +49,12 @@ extern "C" {
49
49
#[ cfg( apple) ]
50
50
pub fn objc_copyImageNames ( out_len : * mut c_uint ) -> * mut * const c_char ;
51
51
52
+ // Instead of being able to change this, it's a weak symbol on GNUStep.
52
53
#[ cfg( apple) ]
53
54
pub fn objc_enumerationMutation ( obj : * mut objc_object ) ;
54
55
#[ cfg( apple) ]
55
56
pub fn objc_setEnumerationMutationHandler (
56
- handler : Option < unsafe extern "C" fn ( arg1 : * mut objc_object ) > ,
57
+ handler : Option < unsafe extern "C" fn ( obj : * mut objc_object ) > ,
57
58
) ;
58
59
59
60
pub fn objc_getAssociatedObject (
@@ -70,9 +71,10 @@ extern "C" {
70
71
71
72
#[ cfg( apple) ]
72
73
pub fn objc_setForwardHandler ( fwd : * mut c_void , fwd_stret : * mut c_void ) ;
73
- #[ cfg( apple) ]
74
+ // These two are defined in:
75
+ // - Apple: objc-sync.h
76
+ // - GNUStep: dtable.h / associate.m
74
77
pub fn objc_sync_enter ( obj : * mut objc_object ) -> c_int ;
75
- #[ cfg( apple) ]
76
78
pub fn objc_sync_exit ( obj : * mut objc_object ) -> c_int ;
77
79
78
80
/// Not available on macOS x86.
You can’t perform that action at this time.
0 commit comments