summaryrefslogtreecommitdiffstats
path: root/contrib/libc++/include/__config
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2012-11-26 21:32:31 +0000
committerdim <dim@FreeBSD.org>2012-11-26 21:32:31 +0000
commitefc7663168c5fecceee060aa8248085b4b424c6e (patch)
tree791e1d661dc6735c2cb45184c6760859b8116384 /contrib/libc++/include/__config
parenta094deb5eec583e8af69dd76ce2d7cdc77e2274d (diff)
downloadFreeBSD-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/__config')
-rw-r--r--contrib/libc++/include/__config3
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/libc++/include/__config b/contrib/libc++/include/__config
index 2bbe1d9..203be76 100644
--- a/contrib/libc++/include/__config
+++ b/contrib/libc++/include/__config
@@ -51,6 +51,9 @@
# define _LIBCPP_LITTLE_ENDIAN 0
# define _LIBCPP_BIG_ENDIAN 1
# endif // _BYTE_ORDER == _LITTLE_ENDIAN
+# ifndef __LONG_LONG_SUPPORTED
+# define _LIBCPP_HAS_NO_LONG_LONG
+# endif // __LONG_LONG_SUPPORTED
#endif // __FreeBSD__
#ifdef _WIN32
OpenPOWER on IntegriCloud