summaryrefslogtreecommitdiffstats
path: root/libcxx/include/__config
diff options
context:
space:
mode:
authorHoward Hinnant <hhinnant@apple.com>2012-11-26 21:18:17 +0000
committerHoward Hinnant <hhinnant@apple.com>2012-11-26 21:18:17 +0000
commitf8b24cf5f7e1708f56b241323e213ed4fbb06dc9 (patch)
treeb8c53176cdd29eb6d3e3bae4e35430b0f738cc7a /libcxx/include/__config
parente25344225dde6f94bd2e3fc2be870a7c749666d8 (diff)
downloadbcm5719-llvm-f8b24cf5f7e1708f56b241323e213ed4fbb06dc9.tar.gz
bcm5719-llvm-f8b24cf5f7e1708f56b241323e213ed4fbb06dc9.zip
Dimitry Andric: 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. llvm-svn: 168610
Diffstat (limited to 'libcxx/include/__config')
-rw-r--r--libcxx/include/__config3
1 files changed, 3 insertions, 0 deletions
diff --git a/libcxx/include/__config b/libcxx/include/__config
index 2bbe1d97242..203be7616cc 100644
--- a/libcxx/include/__config
+++ b/libcxx/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