Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 May 2016 16:26:34 +0000 (UTC)
From:      Ed Schouten <ed@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r300998 - head/include
Message-ID:  <201605301626.u4UGQYtO059484@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605301626.u4UGQYtO059484>