Skip to content

Commit 7502714

Browse files
glib: Fix building for architectures without 64-bit atomics
1 parent 31845c8 commit 7502714

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

glib/src/property.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,9 @@ macro_rules! impl_atomic {
258258
impl_atomic!(std::sync::atomic::AtomicBool, bool);
259259
impl_atomic!(std::sync::atomic::AtomicI8, i8);
260260
impl_atomic!(std::sync::atomic::AtomicI32, i32);
261+
#[cfg(target_has_atomic = "64")]
261262
impl_atomic!(std::sync::atomic::AtomicI64, i64);
262263
impl_atomic!(std::sync::atomic::AtomicU8, u8);
263264
impl_atomic!(std::sync::atomic::AtomicU32, u32);
265+
#[cfg(target_has_atomic = "64")]
264266
impl_atomic!(std::sync::atomic::AtomicU64, u64);

0 commit comments

Comments
 (0)