Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Mar 2016 19:17:12 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r297212 - head/include
Message-ID:  <201603231917.u2NJHCQ4068550@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dim
Date: Wed Mar 23 19:17:12 2016
New Revision: 297212
URL: https://svnweb.freebsd.org/changeset/base/297212

Log:
  For C++, expose long long types and functions (lldiv_t, llabs, lldiv,
  etc) in stdlib.h.  These will be needed for newer versions of libc++,
  which uses them for defining overloaded versions of abs() and div().
  
  MFC after:	1 week

Modified:
  head/include/stdlib.h

Modified: head/include/stdlib.h
==============================================================================
--- head/include/stdlib.h	Wed Mar 23 18:21:26 2016	(r297211)
+++ head/include/stdlib.h	Wed Mar 23 19:17:12 2016	(r297212)
@@ -125,7 +125,7 @@ size_t	 wcstombs(char * __restrict, cons
  *
  * (The only other extension made by C99 in thie header is _Exit().)
  */
-#if __ISO_C_VISIBLE >= 1999
+#if __ISO_C_VISIBLE >= 1999 || defined(__cplusplus)
 #ifdef __LONG_LONG_SUPPORTED
 /* LONGLONG */
 typedef struct {



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