libiberty.h (asprintf, vasprintf): Don't declare them if the corresponding HAVE_DECL_...
authorAlexandre Oliva <aoliva@redhat.com>
Fri, 20 Sep 2002 00:21:54 +0000 (00:21 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Fri, 20 Sep 2002 00:21:54 +0000 (00:21 +0000)
* libiberty.h (asprintf, vasprintf): Don't declare them if the
corresponding HAVE_DECL_ macro is 1.

From-SVN: r57324

include/ChangeLog
include/libiberty.h

index 416ad82b101ae381713154889ee2b5c997851a2a..64e99549c09c6aa34a1d262d5a648aef256a3266 100644 (file)
@@ -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>.
index 0463301832e92dcf5b4ac20f4f638a71c3232306..983fd96e5ae07a657f10846cb8e2e9d43e6e1092 100644 (file)
@@ -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]))