diff options
author | aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-09-20 00:21:54 +0000 |
---|---|---|
committer | aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-09-20 00:21:54 +0000 |
commit | 45cdde7553f04897415fe2470e1a84e2649cdf6d (patch) | |
tree | 0bc8816741b1bf27806e15ab60ff6e96474de2f5 /include | |
parent | 30c1b2686aa49cf15f9ac9c0ad09192dde4689e1 (diff) | |
download | gcc-45cdde7553f04897415fe2470e1a84e2649cdf6d.tar.gz |
* libiberty.h (asprintf, vasprintf): Don't declare them if the
corresponding HAVE_DECL_ macro is 1.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@57324 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'include')
-rw-r--r-- | include/ChangeLog | 5 | ||||
-rw-r--r-- | include/libiberty.h | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/include/ChangeLog b/include/ChangeLog index 416ad82b101..64e99549c09 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,8 @@ +2002-09-19 Alexandre Oliva <aoliva@redhat.com> + + * libiberty.h (asprintf, vasprintf): Don't declare them if the + corresponding HAVE_DECL_ macro is 1. + 2002-06-25 Alan Modra <amodra@bigpond.net.au> * demangle.h: #include "ansidecl.h" rather than #include <ansidecl.h>. diff --git a/include/libiberty.h b/include/libiberty.h index 0463301832e..983fd96e5ae 100644 --- a/include/libiberty.h +++ b/include/libiberty.h @@ -264,16 +264,20 @@ extern int pexecute PARAMS ((const char *, char * const *, const char *, extern int pwait PARAMS ((int, int *, int)); +#if !HAVE_DECL_ASPRINTF /* Like sprintf but provides a pointer to malloc'd storage, which must be freed by the caller. */ extern int asprintf PARAMS ((char **, const char *, ...)) ATTRIBUTE_PRINTF_2; +#endif +#if !HAVE_DECL_VASPRINTF /* Like vsprintf but provides a pointer to malloc'd storage, which must be freed by the caller. */ extern int vasprintf PARAMS ((char **, const char *, va_list)) ATTRIBUTE_PRINTF(2,0); +#endif #define ARRAY_SIZE(a) (sizeof (a) / sizeof ((a)[0])) |