From 240c9fb9ded2511fa22cf15ce246edd424eddba2 Mon Sep 17 00:00:00 2001 From: dim Date: Wed, 30 Mar 2016 22:12:07 +0000 Subject: [PATCH] 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(). git-svn-id: svn://svn.freebsd.org/base/stable/10@297432 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- include/stdlib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/stdlib.h b/include/stdlib.h index 3ed07f398..b4823025a 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 { -- 2.45.0