summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2016-03-30 22:12:07 +0000
committerdim <dim@FreeBSD.org>2016-03-30 22:12:07 +0000
commit4cef198587e2c19e8704456b5551330c5a93b420 (patch)
tree15a046742daba1d3555ce63dc379fe76fc94952c /include
parent93dab7adee59aeaf658465bfe685c35454611b28 (diff)
downloadFreeBSD-src-4cef198587e2c19e8704456b5551330c5a93b420.zip
FreeBSD-src-4cef198587e2c19e8704456b5551330c5a93b420.tar.gz
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().
Diffstat (limited to 'include')
-rw-r--r--include/stdlib.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/stdlib.h b/include/stdlib.h
index 3ed07f3..b482302 100644
--- a/include/stdlib.h
+++ b/include/stdlib.h
@@ -124,7 +124,7 @@ size_t wcstombs(char * __restrict, const wchar_t * __restrict, size_t);
*
* (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 {
OpenPOWER on IntegriCloud