Closed Thra11 closed 7 years ago
I've only tested this on ARM.
I'm also very new to rust, so it's more of a, "this seems to work for me" change than, "I know this is how it should be done".
@Thra11 seems to work. Were there any more steps to be able to build it for ARM?
No. That was the only change required.
Despite the docs saying that libc::c_char is equivalent to i8, it would appear that libc::c_char actually follows the idiosyncracies of the C
char
type that it represents. That is, on some platforms it is equivalent tosigned char
(i8) and on others it isunsigned char
(u8). By explicitly using libc::c_char in thestoptr
andptrtos
functions, we avoid mismatched type errors when compiling on ARM.