Skip to content

Commit

Permalink
Only import SInt32 on macOS. (#641)
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 authored Oct 10, 2023
1 parent 6484a6e commit 723886f
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};
#[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};
Expand Down

0 comments on commit 723886f

Please sign in to comment.