Colin Finck ha scritto:
What I want to
ask is: why are we including host headers from target
headers?
I assume, you're referring to the "ctype.h" included by
"winnt.h".
I think, we include the host header just because we don't have the Standard
C Library headers in our source tree.
That is horrible and you should wash your mouth with soap. Just how the
hell can we have the host include path by default in the target
compiler? that sounds stupid. And, impossible. It sounds like, in fact,
we are using target headers in host code, and, by extension, mixing
target headers in host tool headers. Which is which, Colin?
For these headers, we have to depend on the host
headers.
No, resent and repent. MinGW must have all the target headers we need.
If it doesn't, we provide them. It's not so hard. Host is host and
target is target. You don't include source headers in target sources
But under other hosts, these headers are often
slightly different.
The solution, my good man, is to port RosBE to other hosts