aboutsummaryrefslogtreecommitdiff
path: root/libio
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-01-28 09:37:21 +0000
committerUlrich Drepper <drepper@redhat.com>2001-01-28 09:37:21 +0000
commit3bf3d361faff5e9a8358939e66e9b076909c02ad (patch)
tree68aeaf1054912f9f6849454e85f879d29ed5f397 /libio
parentf9b9f291b7bab3368457d3e273584c25a1ccdc0a (diff)
downloadglibc-3bf3d361faff5e9a8358939e66e9b076909c02ad.zip
glibc-3bf3d361faff5e9a8358939e66e9b076909c02ad.tar.gz
glibc-3bf3d361faff5e9a8358939e66e9b076909c02ad.tar.bz2
Update.
* conform/conformtest.pl: Undo last change. Define $mustprepend{"stdio.h"}. * libio/stdio.h: Define va_list correctly.
Diffstat (limited to 'libio')
-rw-r--r--libio/stdio.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/libio/stdio.h b/libio/stdio.h
index af9ab95..4c8cea6 100644
--- a/libio/stdio.h
+++ b/libio/stdio.h
@@ -32,9 +32,6 @@ __BEGIN_DECLS
# define __need_NULL
# include <stddef.h>
-# define __need___va_list
-# include <stdarg.h>
-
# include <bits/types.h>
# define __need_FILE
# define __need___FILE
@@ -66,6 +63,17 @@ typedef struct _IO_FILE __FILE;
#include <libio.h>
+#ifdef __USE_XOPEN
+# ifdef __GNUC__
+# ifndef _VA_LIST_DEFINED
+typedef _G_va_list va_list;
+# define _VA_LIST_DEFINED
+# endif
+# else
+# include <stdarg.h>
+# endif
+#endif
+
/* The type of the second argument to `fgetpos' and `fsetpos'. */
#ifndef __USE_FILE_OFFSET64
typedef _G_fpos_t fpos_t;