Skip to content

Commit 723886f

Browse files
Only import SInt32 on macOS. (#641)
It is only used on macOS, so having it when building for other targets (like iOS) results in a warning.
1 parent 6484a6e commit 723886f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core-foundation-sys/src/bundle.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
use std::os::raw::c_void;
1111

1212
use array::CFArrayRef;
13-
use base::{Boolean, CFAllocatorRef, CFTypeID, CFTypeRef, SInt32, UInt32};
13+
#[cfg(target_os = "macos")]
14+
use base::SInt32;
15+
use base::{Boolean, CFAllocatorRef, CFTypeID, CFTypeRef, UInt32};
1416
use dictionary::CFDictionaryRef;
1517
use error::CFErrorRef;
1618
use std::os::raw::{c_int, c_uint};

0 commit comments

Comments
 (0)