tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: __RCSID() in tools/libelf (Re: CVS commit: src)



On Tue, Dec 29, 2009 at 08:01:19PM +0900, Izumi Tsutsui wrote:
> > > It looks we should include "nbtool_config.h" before __RCSID()
> > > (or disable it by #if defined(RCSID) etc.) but
> > > I wonder what is the common way to handle this.
> > 
> > Include nbtool_config.h.
> 
> Where?
> Directly before __RCSID()?

As first header, e.g.

#if HAVE_NBTOOL_CONFIG_H
#include "nbtool_config.h"
#endif

#include <sys/cdefs.h>
__RCSID(...)

> Why doesn't most libc sources include nbtool_config.h?

Most libc sources are not pulled into the tools build.
The above is the simplest and canonical form.

Joerg


Home | Main Index | Thread Index | Old Index