svn commit: r232971 - head/include

David Chisnall theraven at FreeBSD.org
Wed Mar 14 14:39:08 UTC 2012


Author: theraven
Date: Wed Mar 14 14:39:07 2012
New Revision: 232971
URL: http://svn.freebsd.org/changeset/base/232971

Log:
  Expose some C11 stuff that is also C++11 stuff in C++11 mode.
  
  Approved by:	dim (mentor)

Modified:
  head/include/stdlib.h

Modified: head/include/stdlib.h
==============================================================================
--- head/include/stdlib.h	Wed Mar 14 14:34:14 2012	(r232970)
+++ head/include/stdlib.h	Wed Mar 14 14:39:07 2012	(r232971)
@@ -151,7 +151,7 @@ _Noreturn void	 _Exit(int);
 /*
  * If we're in a mode greater than C99, expose C11 functions.
  */
-#if __ISO_C_VISIBLE >= 2011
+#if __ISO_C_VISIBLE >= 2011 || __cplusplus >= 201103L
 void *	aligned_alloc(size_t, size_t);
 int	at_quick_exit(void (*)(void));
 _Noreturn void


More information about the svn-src-all mailing list