tech-toolchain archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Avoiding #define uint8_t (and similar) in stdint.h
In article <20141218202216.GC8349%mail.duskware.de@localhost>,
Martin Husemann <martin%duskware.de@localhost> wrote:
>I think I have discussed this issue with some folks here (apb? christos?)
>some time ago, but I can't find any traces of the discussion right now -
>so let me try to start from scratch:
>
>We have this strange construct in <stdint.h>:
>
>#ifndef uint8_t
>typedef __uint8_t uint8_t;
>#define uint8_t __uint8_t
>#endif
>
>... and repeat for all other types.
>
>AFAICT this is standard conformant and all fine, however it leads to tricky
>failures in some C++ pkgs, so we have ugly (and not upstreamable) patches
>for example in www/firefox.
Can you explain what is failing? I am not sure that putting all of
them in one file achieves the goal because it will make a lot more
things visible than they are supposed to be. Like should size_t
become visible if you include <sys/stat.h>?
christos
Home |
Main Index |
Thread Index |
Old Index