[PATCH v3 6/7] Assume GCC defines va_list
Alejandro Colomar
alx@kernel.org
Mon Nov 10 14:17:42 GMT 2025
GCC defines va_list since EGCS, in
gcc.git c4f0e4979f97 (1995-02-21; "Test _VA_LIST_DEFINED macro.").
Signed-off-by: Alejandro Colomar <alx@kernel.org>
---
libio/stdio.h | 7 +------
wcsmbs/wchar.h | 7 +------
2 files changed, 2 insertions(+), 12 deletions(-)
diff --git a/libio/stdio.h b/libio/stdio.h
index e0e70945fa..02875b8829 100644
--- a/libio/stdio.h
+++ b/libio/stdio.h
@@ -48,12 +48,7 @@ __BEGIN_DECLS
#endif
#if defined __USE_XOPEN || defined __USE_XOPEN2K8
-# ifdef __GNUC__
-# ifndef _VA_LIST_DEFINED
-typedef __gnuc_va_list va_list;
-# define _VA_LIST_DEFINED
-# endif
-# else
+# ifndef __GNUC__
# include <stdarg.h>
# endif
#endif
diff --git a/wcsmbs/wchar.h b/wcsmbs/wchar.h
index b31ca2d241..f6198f3acc 100644
--- a/wcsmbs/wchar.h
+++ b/wcsmbs/wchar.h
@@ -38,12 +38,7 @@
#include <stdarg.h>
#if defined __USE_XOPEN2K || defined __USE_XOPEN2K8
-# ifdef __GNUC__
-# ifndef _VA_LIST_DEFINED
-typedef __gnuc_va_list va_list;
-# define _VA_LIST_DEFINED
-# endif
-# else
+# ifndef __GNUC__
# include <stdarg.h>
# endif
#endif
--
2.51.0
More information about the Libc-alpha
mailing list