[U-Boot] Including stdlib.h / ldiv_t

Simon Glass sjg at chromium.org
Tue Sep 27 18:13:03 CEST 2011


Hi Mike,

On Mon, Sep 26, 2011 at 3:05 PM, Mike Frysinger <vapier at gentoo.org> wrote:
> On Monday, September 26, 2011 16:23:01 Simon Glass wrote:
>> At the moment including stdlib and including common.h are mutually
>> exclusive. This probably makes some sense (why would anyone include
>> stdlib.h in U-Boot except with hostcc?), but in that case we should
>> try to replace any need for stdlib with our own definitions. Does that
>> sounds right?
>
> sounds like something for compiler.h to worry about ?
> -mike
>
The header of compiler.h says 'Keep all the ugly #ifdef for system
stuff here', so I was hoping to avoid association with that file.
People do explicitly include div64.h but compiler.h is included by
common.h. So it seems to be that a separate header is called for...?

Regards,
Simon


More information about the U-Boot mailing list