Use the stdarg module.
authorBruno Haible <bruno@clisp.org>
Tue, 25 Jul 2006 11:32:36 +0000 (11:32 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 25 Jul 2006 11:32:36 +0000 (11:32 +0000)
ChangeLog
lib/ChangeLog
lib/version-etc.c
modules/version-etc

index 26f9c6c..c4da857 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2006-07-25  Bruno Haible  <bruno@clisp.org>
+
+       * modules/version-etc (Depends-on): Add stdarg.
+
 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
 
        * MODULES.html.sh (File stream based Input/Output):
index e82bd40..aa83fbc 100644 (file)
@@ -1,3 +1,8 @@
+2006-07-25  Bruno Haible  <bruno@clisp.org>
+
+       * version-etc.c (version_etc_va): Use va_copy, assumed to be defined in
+       <stdarg.h> or config.h.
+
 2006-07-24  Bruno Haible  <bruno@clisp.org>
 
        * clean-temp.h: New file, from GNU gettext.
index cb9e4c2..7887c26 100644 (file)
@@ -50,11 +50,7 @@ version_etc_va (FILE *stream,
   {
     va_list tmp_authors;
 
-#ifdef __va_copy
-    __va_copy (tmp_authors, authors);
-#else
-    tmp_authors = authors;
-#endif
+    va_copy (tmp_authors, authors);
 
     n_authors = 0;
     while (va_arg (tmp_authors, const char *) != NULL)
index a73be3c..2b6d015 100644 (file)
@@ -7,6 +7,7 @@ lib/version-etc.c
 
 Depends-on:
 gettext-h
+stdarg
 
 configure.ac: