From 7b508f5cf1cffaba9056e779bab2a09bf6767655 Mon Sep 17 00:00:00 2001 From: joerg Date: Mon, 11 Nov 2013 23:42:23 +0000 Subject: Import libc++ r194207. This brings in various bug fixes, a good chunk of support for the up-coming C++14 and improved compatibility with various compilers other than Clang. --- external/bsd/libc++/dist/libcxx/src/thread.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'external/bsd/libc++/dist/libcxx/src/thread.cpp') diff --git a/external/bsd/libc++/dist/libcxx/src/thread.cpp b/external/bsd/libc++/dist/libcxx/src/thread.cpp index cdfa2fd9273..338a8a24cef 100644 --- a/external/bsd/libc++/dist/libcxx/src/thread.cpp +++ b/external/bsd/libc++/dist/libcxx/src/thread.cpp @@ -89,7 +89,11 @@ thread::hardware_concurrency() _NOEXCEPT #else // defined(CTL_HW) && defined(HW_NCPU) // TODO: grovel through /proc or check cpuid on x86 and similar // instructions on other architectures. -#warning hardware_concurrency not yet implemented +# if defined(_MSC_VER) && ! defined(__clang__) + _LIBCPP_WARNING("hardware_concurrency not yet implemented") +# else +# warning hardware_concurrency not yet implemented +# endif return 0; // Means not computable [thread.thread.static] #endif // defined(CTL_HW) && defined(HW_NCPU) } -- cgit