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:
Bruce Mitchener
2023-10-10 23:13:57 +07:00
committed by GitHub
parent 6484a6e9ac
commit 723886f243
+3 -1
View File
@@ -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};