Skip to content

Commit 364c767

Browse files
authored
Add definition of c_char for SPARC (#117)
SPARC 32 bit is a tier 3 platform in Rust, though rustix checks against it. A proposed update to 0.6.4 for this library degraded those checks as SPARC 32 bit lacks a definition for `c_char`. The best evidence I could find as to the signedness of SPARC 32 bit is the blog post linked below, though I have not replicated their findings. https://github.com/bytecodealliance/rustix/actions/runs/8955815255/job/24596945878?pr=1056 https://trofi.github.io/posts/203-signed-char-or-unsigned-char.html
1 parent 9c7edc4 commit 364c767

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ pub mod ctypes {
2222
#[cfg(any(
2323
target_arch = "mips",
2424
target_arch = "mips64",
25+
target_arch = "sparc",
2526
target_arch = "sparc64",
2627
target_arch = "x86",
2728
target_arch = "x86_64",

0 commit comments

Comments
 (0)