From 7e3327be3254104f91c923180407c5c7e9f8dfae Mon Sep 17 00:00:00 2001 From: Ed Schouten Date: Mon, 30 May 2016 16:26:34 +0000 Subject: [PATCH] Add missing va_list to . It looks like va_list should always be defined when XSI is enabled. It moved over to the POSIX base in the 2008 edition. --- include/wchar.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/wchar.h b/include/wchar.h index 84a4a976e6b..26d257ac8b4 100644 --- a/include/wchar.h +++ b/include/wchar.h @@ -76,6 +76,13 @@ typedef __size_t size_t; #define _SIZE_T_DECLARED #endif +#if __POSIX_VISIBLE >= 200809 || __XSI_VISIBLE +#ifndef _VA_LIST_DECLARED +typedef __va_list va_list; +#define _VA_LIST_DECLARED +#endif +#endif + #ifndef __cplusplus #ifndef _WCHAR_T_DECLARED typedef ___wchar_t wchar_t;