changeset 7048:a20a6a93ab74

Use the stdarg module.
author Bruno Haible <bruno@clisp.org>
date Tue, 25 Jul 2006 11:32:36 +0000
parents 1e1de4def5a6
children ab580b6ba2ff
files ChangeLog lib/ChangeLog lib/version-etc.c modules/version-etc
diffstat 4 files changed, 11 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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):
--- a/lib/ChangeLog
+++ b/lib/ChangeLog
@@ -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.
--- a/lib/version-etc.c
+++ b/lib/version-etc.c
@@ -50,11 +50,7 @@
   {
     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)
--- a/modules/version-etc
+++ b/modules/version-etc
@@ -7,6 +7,7 @@
 
 Depends-on:
 gettext-h
+stdarg
 
 configure.ac: