aboutsummaryrefslogtreecommitdiff
path: root/include/libiberty.h
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2002-09-20 00:21:58 +0000
committerAlexandre Oliva <aoliva@redhat.com>2002-09-20 00:21:58 +0000
commitbb7eb0390bd1fe1972169391683eeb79cbd986fd (patch)
tree2fac877e9154419d8e065b8ef0c399eddce4a139 /include/libiberty.h
parent055d38886f9ad98bc95def5b2a65e1c45e62b12b (diff)
downloadgdb-bb7eb0390bd1fe1972169391683eeb79cbd986fd.zip
gdb-bb7eb0390bd1fe1972169391683eeb79cbd986fd.tar.gz
gdb-bb7eb0390bd1fe1972169391683eeb79cbd986fd.tar.bz2
* libiberty.h (asprintf, vasprintf): Don't declare them if the
corresponding HAVE_DECL_ macro is 1.
Diffstat (limited to 'include/libiberty.h')
-rw-r--r--include/libiberty.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/libiberty.h b/include/libiberty.h
index 0463301..983fd96 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]))