[ros-dev] [ros-diffs] [cfinck] 28423: - Alwaysinclude"wine/unicode.h" before all other headers, when we need the wchar_t type. unicode.h includes windef.h, which includes winnt.h, which has the handling for the wchar_t type. As it's the firstinc

Colin Finck mail at colinfinck.de
Tue Aug 21 18:14:21 CEST 2007


> KJK::Hyperion wrote:
> 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.
For these headers, we have to depend on the host headers.

Under Windows, this is no problem as RosBE contains these headers, so they
are quite consistent.
But under other hosts, these headers are often slightly different.

Regards,

Colin



More information about the Ros-dev mailing list