[PATCH] libiberty: Only declare vasprintf if it was checked for
Ian Lance Taylor via gcc-patches
gcc-patches@gcc.gnu.org
Wed Apr 24 13:31:00 GMT 2019
On Mon, Apr 22, 2019 at 11:51 PM Michael Forney <mforney@mforney.org> wrote:
>
> This matches how the the rest of the libc functions are declared and
> prevents a potential conflict with the system declaration when libiberty.h
> is included from a directory that did not check for vasprintf, but it is
> available. It also corresponds to a similar previous change for asprintf
> (r223589).
>
> 2019-04-22 Michael Forney <mforney@mforney.org>
>
> * libiberty.h (vasprintf): Don't declare if HAVE_DECL_VASPRINTF
> is not defined.
This is OK.
Thanks.
Ian
More information about the Gcc-patches
mailing list