Skip to content

Commit

Permalink
Fix the type of kFSEventStreamEventIdSinceNow
Browse files Browse the repository at this point in the history
To fix compilation on 32-bit targets.
  • Loading branch information
madsmtm committed Feb 26, 2025
1 parent 390055c commit e920953
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions framework-crates/objc2-core-services/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ pub use self::generated::*;
#[cfg(feature = "FSEvents")]
pub type ConstFSEventStreamRef = *const __FSEventStream;

#[allow(non_upper_case_globals)]
#[cfg(feature = "FSEvents")]
/// [Apple's documentation](https://developer.apple.com/documentation/coreservices/kfseventstreameventidsincenow?language=objc)
pub const kFSEventStreamEventIdSinceNow: FSEventStreamEventId = 0xFFFFFFFFFFFFFFFF;

// MacTypes.h
#[allow(dead_code)]
mod mac_types {
Expand Down
3 changes: 3 additions & 0 deletions framework-crates/objc2-core-services/translation-config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ fn.DisposeComponentFunctionUPP.skipped = true
fn.CallComponentFunction.skipped = true
fn.CallComponentFunctionWithStorage.skipped = true

# Defaults to c_ulong, which is wrong on 32-bit targets.
enum.anonymous.constants.kFSEventStreamEventIdSinceNow.skipped = true

# Tries to OR u32s and i32s.
enum.anonymous.constants.kIconServicesCatalogInfoMask.use-value = true

Expand Down
2 changes: 1 addition & 1 deletion generated

0 comments on commit e920953

Please sign in to comment.