We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
memalign
1 parent 620c9d5 commit 6686577Copy full SHA for 6686577
library/std/src/sys/unix/alloc.rs
@@ -53,13 +53,9 @@ unsafe impl GlobalAlloc for System {
53
}
54
55
cfg_if::cfg_if! {
56
- if #[cfg(target_os = "freertos")] {
57
- #[inline]
58
- unsafe fn aligned_malloc(layout: &Layout) -> *mut u8 {
59
- libc::malloc(layout.size()) as *mut u8
60
- }
61
- } else if #[cfg(any(
+ if #[cfg(any(
62
target_os = "android",
+ target_os = "freertos",
63
target_os = "illumos",
64
target_os = "redox",
65
target_os = "solaris"
0 commit comments