This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: chew failure on x86_64
Daniel Jacobowitz <drow@false.org> writes:
> > You can't call malloc without a prototype, when pointers are 64 bits
> > and integers are 32 bits.
> >
> > 2005-07-22 DJ Delorie <dj@redhat.com>
> >
> > * chew.c: Include stdlib.h.
>
> Thanks. In fact, I didn't realize Kazu's patch left warnings in this
> file... We're missing prototypes for memcpy, strlen, and strcpy.
>
> Now that we assume ISO C90, can we use <string.h> unconditionally?
We currently assume a C90 compiler, but we don't assume C90 libraries.
That said, we do assume in various places that <string.h> exists, so I
think that is safe.
Ian