mirror of
https://github.com/rust-embedded/heapless.git
synced 2025-09-27 04:20:24 +00:00
fix build for ARMv6-M
This commit is contained in:
parent
a4f33b4768
commit
adee3a067d
@ -54,9 +54,15 @@ use core::{
|
||||
marker::PhantomData,
|
||||
ops::Deref,
|
||||
ptr,
|
||||
sync::atomic::{self, AtomicUsize, Ordering},
|
||||
sync::atomic,
|
||||
};
|
||||
|
||||
#[cfg(armv6m)]
|
||||
use atomic_polyfill::{AtomicUsize, Ordering};
|
||||
|
||||
#[cfg(not(armv6m))]
|
||||
use core::sync::atomic::{AtomicUsize, Ordering};
|
||||
|
||||
use crate::pool::{self, stack::Ptr, Node};
|
||||
|
||||
/// Instantiates a pool of Arc pointers as a global singleton
|
||||
|
Loading…
x
Reference in New Issue
Block a user