We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d16668 commit 3ecd5e8Copy full SHA for 3ecd5e8
cocoa-foundation/src/foundation.rs
@@ -17,18 +17,8 @@ use block::Block;
17
use libc;
18
use objc2_encode::{Encode, Encoding, RefEncode};
19
20
+pub use objc2::ffi::{NSInteger, NSUInteger, NSIntegerMax};
21
-#[cfg(target_pointer_width = "32")]
22
-pub type NSInteger = libc::c_int;
23
24
-pub type NSUInteger = libc::c_uint;
25
-
26
-#[cfg(target_pointer_width = "64")]
27
-pub type NSInteger = libc::c_long;
28
29
-pub type NSUInteger = libc::c_ulong;
30
31
-pub const NSIntegerMax: NSInteger = NSInteger::max_value();
32
pub const NSNotFound: NSInteger = NSIntegerMax;
33
34
const UTF8_ENCODING: usize = 4;
0 commit comments