Skip to content

Commit

Permalink
RPi Compilation Fixed (#298)
Browse files Browse the repository at this point in the history
Fix compilation errors on the Raspberry PI
  • Loading branch information
iamwacko authored Jun 21, 2022
1 parent af640d9 commit 1e0bbb8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/native/linux_wayland.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,15 +143,15 @@ unsafe extern "C" fn seat_handle_capabilities(
extern "C" fn seat_handle_name(
_data: *mut std::ffi::c_void,
_seat: *mut wl_seat,
_name: *const i8,
_name: *const ::std::os::raw::c_char,
) {
}

unsafe extern "C" fn registry_add_object(
data: *mut std::ffi::c_void,
registry: *mut wl_registry,
name: u32,
interface: *const i8,
interface: *const ::std::os::raw::c_char,
version: u32,
) {
let payload: &mut WaylandPayload = &mut *(data as *mut _);
Expand Down
2 changes: 1 addition & 1 deletion src/native/linux_wayland/extensions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ macro_rules! wayland_interface {
}),*];

pub static mut $name: wl_interface = wl_interface {
name: concat!(stringify!($struct_name), '\0').as_ptr() as *const i8,
name: concat!(stringify!($struct_name), '\0').as_ptr() as *const _,
version: $version,
method_count: crate::count!($($method_name)*) as i32,
methods: unsafe { requests.as_ptr() },
Expand Down

0 comments on commit 1e0bbb8

Please sign in to comment.