Skip to content

Commit

Permalink
glib: Fix building for architectures without 64-bit atomics
Browse files Browse the repository at this point in the history
  • Loading branch information
johan-bjareholt authored and sdroege committed Mar 15, 2023
1 parent 520c1b0 commit b53499b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions glib/src/property.rs
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,9 @@ macro_rules! impl_atomic {
impl_atomic!(std::sync::atomic::AtomicBool, bool);
impl_atomic!(std::sync::atomic::AtomicI8, i8);
impl_atomic!(std::sync::atomic::AtomicI32, i32);
#[cfg(target_has_atomic = "64")]
impl_atomic!(std::sync::atomic::AtomicI64, i64);
impl_atomic!(std::sync::atomic::AtomicU8, u8);
impl_atomic!(std::sync::atomic::AtomicU32, u32);
#[cfg(target_has_atomic = "64")]
impl_atomic!(std::sync::atomic::AtomicU64, u64);

0 comments on commit b53499b

Please sign in to comment.