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 {
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"