This just provides the numeric C types, for basic FFI purposes.
- If you're on Windows it just gives the necessary aliases.
- If you're on not-Windows it re-exports from
You might think "why not just always link to
libc?", but on Windows that
means that your resulting binary is less portable for no reason. Either the
user's machine will need to have the visual studio redistributable DLL
installed or you'll have to build the binary with a static linked CRT
configured. Either of these options are silly if all that you want is some
type declarations and you're not even calling any functions.
- Question: Lokathor, aren't you just being totally crazy?
Does all our conditional compilation selection.
Equivalent to C's