From efc7663168c5fecceee060aa8248085b4b424c6e Mon Sep 17 00:00:00 2001 From: dim Date: Mon, 26 Nov 2012 21:32:31 +0000 Subject: Pull in r168610 from upstream libc++: When using libc++ headers on FreeBSD, in combination with -std=c++98, -ansi or -std=c++03, the long long type is not supported. So in this case, several functions and types, like lldiv_t, strtoll(), are not declared. This should make it possible to use the libc++ headers in c++98 mode. Note: libc++ is originally designed as a c++0x or higher library, so you should still take care when using it with c++98 or c++03. Noted by: Yamaya Takashi MFC after: 1 week --- contrib/libc++/include/cwchar | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'contrib/libc++/include/cwchar') diff --git a/contrib/libc++/include/cwchar b/contrib/libc++/include/cwchar index 8e788fc..eed6de1 100644 --- a/contrib/libc++/include/cwchar +++ b/contrib/libc++/include/cwchar @@ -151,9 +151,13 @@ using ::wcstof; using ::wcstold; #endif // _MSC_VER using ::wcstol; +#ifndef _LIBCPP_HAS_NO_LONG_LONG using ::wcstoll; +#endif // _LIBCPP_HAS_NO_LONG_LONG using ::wcstoul; +#ifndef _LIBCPP_HAS_NO_LONG_LONG using ::wcstoull; +#endif // _LIBCPP_HAS_NO_LONG_LONG using ::wcscpy; using ::wcsncpy; using ::wcscat; -- cgit v1.1