Rockbox open source high quality audio player as a Music Player Daemon
mpris rockbox mpd libadwaita audio rust zig deno
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

Use c_char for pointer casts

+1 -14
+1 -14
crates/sys/src/lib.rs
··· 34 34 #[macro_export] 35 35 macro_rules! cast_ptr { 36 36 ($ptr:expr) => {{ 37 - #[cfg(all(target_arch = "aarch64", target_os = "macos"))] 38 - { 39 - $ptr as *const i8 40 - } 41 - 42 - #[cfg(all(target_arch = "aarch64", target_os = "linux"))] 43 - { 44 - $ptr as *const u8 45 - } 46 - 47 - #[cfg(not(target_arch = "aarch64"))] 48 - { 49 - $ptr as *const i8 50 - } 37 + $ptr as *const std::ffi::c_char 51 38 }}; 52 39 } 53 40