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.
This commit is contained in:
@@ -10,7 +10,9 @@
|
||||
use std::os::raw::c_void;
|
||||
|
||||
use array::CFArrayRef;
|
||||
use base::{Boolean, CFAllocatorRef, CFTypeID, CFTypeRef, SInt32, UInt32};
|
||||
#[cfg(target_os = "macos")]
|
||||
use base::SInt32;
|
||||
use base::{Boolean, CFAllocatorRef, CFTypeID, CFTypeRef, UInt32};
|
||||
use dictionary::CFDictionaryRef;
|
||||
use error::CFErrorRef;
|
||||
use std::os::raw::{c_int, c_uint};
|
||||
|
||||
Reference in New Issue
Block a user