[uClibc]namespace pollution in features.h?

Erik Andersen andersen at codepoet.org
Fri Mar 15 06:39:05 UTC 2002


On Fri Mar 15, 2002 at 03:30:51PM +0900, Miles Bader wrote:
> BTW, one thing I've noticed is a growing set of definitions in
> <features.h> that intrude on the user's namespace, e.g., `weak_function'
> & friends, and now `likely' and `unlikely'.
> 
> Wouldn't it be better to use the reserved __ namespace for these, eg.,
> __weak_function, __likely, &c?
> 
> `likely' and `unlikely', especially, seem like (ahem) like names that
> a user program might use.
> 
> [or are these defined in some standard now?]

No, no, you are correct.  Those need to move into a '#if defined
_LIBC block' in features.h.  It also looks like a '#define
__USE_UNIX98' snuck into features.h when I wasn't looking...

 -Erik

--
Erik B. Andersen             http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--



More information about the uClibc mailing list