merge from gcc
authorDJ Delorie <dj@redhat.com>
Wed, 8 Sep 2004 22:01:25 +0000 (22:01 +0000)
committerDJ Delorie <dj@redhat.com>
Wed, 8 Sep 2004 22:01:25 +0000 (22:01 +0000)
libiberty/ChangeLog
libiberty/vasprintf.c

index 12dbff8..c8ea333 100644 (file)
@@ -1,3 +1,7 @@
+2004-09-08  Adam Nemet  <anemet@lnxw.com>
+
+       * vasprintf.c: Accept __va_copy in addition to va_copy.
+
 2004-09-03  Paolo Bonzini  <bonzini@gnu.org> 
 
        * configure: Regenerate.
index d3d4f3a..7eaf2b1 100644 (file)
@@ -27,6 +27,9 @@ Boston, MA 02111-1307, USA.  */
 #else
 #include <varargs.h>
 #endif
+#if !defined (va_copy) && defined (__va_copy)
+# define va_copy(d,s)  __va_copy((d),(s))
+#endif
 #include <stdio.h>
 #ifdef HAVE_STRING_H
 #include <string.h>