Skip to content

Commit

Permalink
fix(linux): taskbar compile error on aarch64 (#884)
Browse files Browse the repository at this point in the history
* fix(linux): taskbar compile error on aarch64

fixes #883

Note that i couldn't actually test the progress bar feature but at least it compiles now.

* Create fix-linux-arm64.md

* Update fix-linux-arm64.md
  • Loading branch information
FabianLars committed Feb 28, 2024
1 parent 51e899d commit f2ffb50
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changes/fix-linux-arm64.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
tao: 'patch:bug'
---

Fixed compile errors for Linux Arm64 targets.
4 changes: 2 additions & 2 deletions src/platform_impl/linux/taskbar.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
use std::ffi::CString;
use std::ffi::{c_char, CString};

use dlopen2::wrapper::{Container, WrapperApi};

use crate::window::{ProgressBarState, ProgressState};

#[derive(WrapperApi)]
struct UnityLib {
unity_launcher_entry_get_for_desktop_id: unsafe extern "C" fn(id: *const i8) -> *const isize,
unity_launcher_entry_get_for_desktop_id: unsafe extern "C" fn(id: *const c_char) -> *const isize,
unity_inspector_get_default: unsafe extern "C" fn() -> *const isize,
unity_inspector_get_unity_running: unsafe extern "C" fn(inspector: *const isize) -> i32,
unity_launcher_entry_set_progress: unsafe extern "C" fn(entry: *const isize, value: f64) -> i32,
Expand Down

0 comments on commit f2ffb50

Please sign in to comment.