This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Warning roundup - ld/


Daniel Jacobowitz <drow@mvista.com> writes:

> +#ifndef HAVE_STDLIB_H
> +/* If we have <stdlib.h>, assume it defines strtoul.  */
>  /* Omit args to avoid the possibility of clashing with a system header
>     that might disagree about consts.  */
>  unsigned long strtoul ();
> +#endif

This is not a safe assumption, as I believe some versions of SunOS
have <stdlib.h> but do not have strtoul().

However, I don't know lexsup.c is bothering to declare strtoul() at
all.

Ian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]