From 723886f243a2d7c1e22ee89260d59ba97b35af1a Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Tue, 10 Oct 2023 23:13:57 +0700 Subject: [PATCH] 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. --- core-foundation-sys/src/bundle.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core-foundation-sys/src/bundle.rs b/core-foundation-sys/src/bundle.rs index 031ac263f..8bc0010ef 100644 --- a/core-foundation-sys/src/bundle.rs +++ b/core-foundation-sys/src/bundle.rs @@ -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};