melib/datetime: use type alias for c_char

On arm64, it's u8, not i8.

Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
pull/318/head
Manos Pitsidianakis 6 months ago
parent 71f3ffe740
commit 63a63253d7
No known key found for this signature in database
GPG Key ID: 7729C7707F7E09D0

@ -790,7 +790,9 @@ mod tests {
#[test]
fn test_datetime_rfcs() {
if unsafe { libc::setlocale(libc::LC_ALL, b"\0".as_ptr() as *const i8) }.is_null() {
if unsafe { libc::setlocale(libc::LC_ALL, b"\0".as_ptr() as *const core::ffi::c_char) }
.is_null()
{
eprintln!("Unable to set locale.");
}
/* Some tests were lazily stolen from https://rachelbythebay.com/w/2013/06/11/time/ */

Loading…
Cancel
Save