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 {
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to