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