Skip to content

Commit

Permalink
Only import SInt32 on macOS.
Browse files Browse the repository at this point in the history
It is only used on macOS, so having it when building for other
targets (like iOS) results in a warning.
  • Loading branch information
waywardmonkeys committed Oct 10, 2023
1 parent c4f4ad2 commit 1c39ac9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core-foundation-sys/src/bundle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
use std::os::raw::c_void;

use array::CFArrayRef;
use base::{Boolean, CFAllocatorRef, CFTypeID, CFTypeRef, SInt32, UInt32};
use base::{Boolean, CFAllocatorRef, CFTypeID, CFTypeRef, UInt32};
#[cfg(target_os = "macos")]
use base::SInt32;
use dictionary::CFDictionaryRef;
use error::CFErrorRef;
use std::os::raw::{c_int, c_uint};
Expand Down

0 comments on commit 1c39ac9

Please sign in to comment.