diff options
author | Michael Forney <mforney@mforney.org> | 2019-04-26 15:35:01 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 2019-04-26 09:35:01 -0600 |
commit | 6b3a5e8a3d18c8a954c6e99072fe1859977fafbd (patch) | |
tree | f67264e699e73d5059e2e67593c3288875c2719c /include | |
parent | 53e6927367683761193f3bb6a7009f8ba04572ff (diff) |
libiberty.h (vasprintf): Don't declare if HAVE_DECL_VASPRINTF is not defined.
* libiberty.h (vasprintf): Don't declare if HAVE_DECL_VASPRINTF
is not defined.
From-SVN: r270605
Diffstat (limited to 'include')
-rw-r--r-- | include/ChangeLog | 5 | ||||
-rw-r--r-- | include/libiberty.h | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/include/ChangeLog b/include/ChangeLog index ffa48aef7c4..fe77f86b733 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,8 @@ +2019-04-26 Michael Forney <mforney@mforney.org> + + * libiberty.h (vasprintf): Don't declare if HAVE_DECL_VASPRINTF + is not defined. + 2019-04-03 Vineet Gupta <vgupta@synopsys.com> PR89877 diff --git a/include/libiberty.h b/include/libiberty.h index 57476135026..e11aa97f0ba 100644 --- a/include/libiberty.h +++ b/include/libiberty.h @@ -649,7 +649,7 @@ extern int asprintf (char **, const char *, ...) ATTRIBUTE_PRINTF_2; extern char *xasprintf (const char *, ...) ATTRIBUTE_MALLOC ATTRIBUTE_PRINTF_1; -#if !HAVE_DECL_VASPRINTF +#if defined(HAVE_DECL_VASPRINTF) && !HAVE_DECL_VASPRINTF /* Like vsprintf but provides a pointer to malloc'd storage, which must be freed by the caller. */ |