diff options
author | dim <dim@FreeBSD.org> | 2012-11-26 21:32:31 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2012-11-26 21:32:31 +0000 |
commit | efc7663168c5fecceee060aa8248085b4b424c6e (patch) | |
tree | 791e1d661dc6735c2cb45184c6760859b8116384 /contrib/libc++/include/cwchar | |
parent | a094deb5eec583e8af69dd76ce2d7cdc77e2274d (diff) | |
download | FreeBSD-src-efc7663168c5fecceee060aa8248085b4b424c6e.zip FreeBSD-src-efc7663168c5fecceee060aa8248085b4b424c6e.tar.gz |
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 <yamayan@kbh.biglobe.ne.jp>
MFC after: 1 week
Diffstat (limited to 'contrib/libc++/include/cwchar')
-rw-r--r-- | contrib/libc++/include/cwchar | 4 |
1 files changed, 4 insertions, 0 deletions
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; |