diff options
author | ed <ed@FreeBSD.org> | 2016-06-18 12:46:50 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2016-06-18 12:46:50 +0000 |
commit | 2c8f72f18054b8cb982123d31d3632a898368ddc (patch) | |
tree | e1f79bf2fe2aaa79632b56f866064b1f920cde37 /include | |
parent | 7432e0a6e13199fa0b110d80e9d19b5efb3efb97 (diff) | |
download | FreeBSD-src-2c8f72f18054b8cb982123d31d3632a898368ddc.zip FreeBSD-src-2c8f72f18054b8cb982123d31d3632a898368ddc.tar.gz |
MFC r300998:
Add missing va_list to <wchar.h>.
It looks like va_list should always be defined when XSI is enabled. It
moved over to the POSIX base in the 2008 edition.
Diffstat (limited to 'include')
-rw-r--r-- | include/wchar.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/wchar.h b/include/wchar.h index 8233bdf..afec811 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; |