mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-23 22:01:31 +11:00
Fix compilation on aarch64-linux
aarch64 defines `c_char` as `u8` and not `i8`. Use `c_char` alias directly.
This commit is contained in:
parent
b5785ba785
commit
0c8bf25ae4
|
@ -154,7 +154,7 @@ impl KbdState {
|
||||||
/// `xkb_state_key_get_utf8`.
|
/// `xkb_state_key_get_utf8`.
|
||||||
fn make_string_with<F>(&mut self, mut f: F) -> Option<SmolStr>
|
fn make_string_with<F>(&mut self, mut f: F) -> Option<SmolStr>
|
||||||
where
|
where
|
||||||
F: FnMut(*mut i8, usize) -> i32,
|
F: FnMut(*mut c_char, usize) -> i32,
|
||||||
{
|
{
|
||||||
let size = f(ptr::null_mut(), 0);
|
let size = f(ptr::null_mut(), 0);
|
||||||
if size == 0 {
|
if size == 0 {
|
||||||
|
|
Loading…
Reference in a new issue