mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-30 16:35:16 +08:00
Use c_char instead of a fixed i8
Char signedness sucks sooooo bad. Anyway, this broke the build on aarch64 linux.
This commit is contained in:
parent
c6f7933999
commit
2be36fbfb6
@ -1,6 +1,6 @@
|
||||
use std::sync::atomic::AtomicPtr;
|
||||
|
||||
use libc::c_int;
|
||||
use libc::{c_char, c_int};
|
||||
use once_cell::sync::Lazy;
|
||||
|
||||
pub fn MB_CUR_MAX() -> usize {
|
||||
@ -33,7 +33,7 @@ extern "C" {
|
||||
|
||||
pub static _PATH_BSHELL: AtomicPtr<i8> = AtomicPtr::new(std::ptr::null_mut());
|
||||
extern "C" {
|
||||
pub fn C_PATH_BSHELL() -> *const i8;
|
||||
pub fn C_PATH_BSHELL() -> *const c_char;
|
||||
}
|
||||
|
||||
pub static _PC_CASE_SENSITIVE: Lazy<c_int> = Lazy::new(|| unsafe { C_PC_CASE_SENSITIVE() });
|
||||
|
Loading…
x
Reference in New Issue
Block a user