diff options
author | Bruce Mitchener <bruce.mitchener@gmail.com> | 2013-02-28 00:35:29 +0700 |
---|---|---|
committer | Bruce Mitchener <bruce.mitchener@gmail.com> | 2013-03-25 00:34:11 +0700 |
commit | 90338c69f75bf4c0b07bd7552b9c47755194eca8 (patch) | |
tree | 902d6292433d5b740bcdb8df2025825246ed5397 /system/lib/libcxx/thread.cpp | |
parent | 1a0bccc11d4ba74f8891b70dca1a723a4a7b932a (diff) |
Get things working with the new libcxx / libcxxabi.
Diffstat (limited to 'system/lib/libcxx/thread.cpp')
-rw-r--r-- | system/lib/libcxx/thread.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/lib/libcxx/thread.cpp b/system/lib/libcxx/thread.cpp index 447eca7b..a2d95bb2 100644 --- a/system/lib/libcxx/thread.cpp +++ b/system/lib/libcxx/thread.cpp @@ -65,7 +65,7 @@ thread::hardware_concurrency() _NOEXCEPT std::size_t s = sizeof(n); sysctl(mib, 2, &n, &s, 0, 0); return n; -#elif defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200112L) && defined(_SC_NPROCESSORS_ONLN) +#elif (defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200112L) && defined(_SC_NPROCESSORS_ONLN)) || defined(EMSCRIPTEN) long result = sysconf(_SC_NPROCESSORS_ONLN); // sysconf returns -1 if the name is invalid, the option does not exist or // does not have a definite limit. |