svn commit: r300998 - head/include

Ed Schouten ed at FreeBSD.org
Mon May 30 16:26:35 UTC 2016


Author: ed
Date: Mon May 30 16:26:34 2016
New Revision: 300998
URL: https://svnweb.freebsd.org/changeset/base/300998

Log:
  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.

Modified:
  head/include/wchar.h

Modified: head/include/wchar.h
==============================================================================
--- head/include/wchar.h	Mon May 30 13:51:27 2016	(r300997)
+++ head/include/wchar.h	Mon May 30 16:26:34 2016	(r300998)
@@ -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;


More information about the svn-src-all mailing list