Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Mar 2016 22:12:08 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r297432 - in stable: 10/include 9/include
Message-ID:  <201603302212.u2UMC8Vx021824@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dim
Date: Wed Mar 30 22:12:07 2016
New Revision: 297432
URL: https://svnweb.freebsd.org/changeset/base/297432

Log:
  MFC r297212:
  
  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().

Modified:
  stable/9/include/stdlib.h
Directory Properties:
  stable/9/   (props changed)
  stable/9/include/   (props changed)

Changes in other areas also in this revision:
Modified:
  stable/10/include/stdlib.h
Directory Properties:
  stable/10/   (props changed)

Modified: stable/9/include/stdlib.h
==============================================================================
--- stable/9/include/stdlib.h	Wed Mar 30 21:31:34 2016	(r297431)
+++ stable/9/include/stdlib.h	Wed Mar 30 22:12:07 2016	(r297432)
@@ -124,7 +124,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?201603302212.u2UMC8Vx021824>