Conversation
This patch removes dependency on platform specific headers.
I'm not clear on what you're looking for here. Those assertions are now tautologically true since the type is just an alias. It's not clear to me how the POSIX I'm guessing that the scenarios of concern are APIs where you want a C signature using Now, practically speaking, if what you really do want is to do some assertions about What I think is canonical and best practice here is to use empirical build-time checks about what APIs are available. I'm not very familiar with Rust crates and how things are done there. In builds using autoconf or cmake, it's very common to wire up configure-time checks for whether a particular C/C++ header file is available. (There are also easy canned checking features specifically for types existing IIRC.) In this case, I think it's probably sufficient to just presume that if If you don't mind relying on a feature that wasn't standard in C++ until C++17, or on one that is available only in non-ancient versions of common compilers like GCC and Clang in pre-17 C++ modes, then you could just use |
|
@dtolnay mind taking another look at this and the above comment? |
Remove platform specific headers which were included for ssize_t and use intptr_t instead to prevent failures in baremetal builds.