Commit d233d995 authored by Orvid King's avatar Orvid King Committed by Facebook Github Bot

Only require C++14 for Windows builds

Summary: Because reasons :(

Reviewed By: yfeldblum

Differential Revision: D9923447

fbshipit-source-id: 7a3a9ab86764dc5c7f5b70f2f728aec8b67bdf1f
parent ed2ea649
...@@ -102,7 +102,7 @@ DWORD internal_pthread_thread_start(void* arg) { ...@@ -102,7 +102,7 @@ DWORD internal_pthread_thread_start(void* arg) {
auto startupInfo = reinterpret_cast<pthread_startup_info*>(arg); auto startupInfo = reinterpret_cast<pthread_startup_info*>(arg);
current_thread_self = startupInfo->thread; current_thread_self = startupInfo->thread;
auto ret = startupInfo->startupFunction(startupInfo->startupArgument); auto ret = startupInfo->startupFunction(startupInfo->startupArgument);
if constexpr (sizeof(void*) != sizeof(DWORD)) { if /* constexpr */ (sizeof(void*) != sizeof(DWORD)) {
auto tmp = reinterpret_cast<uintptr_t>(ret); auto tmp = reinterpret_cast<uintptr_t>(ret);
if (tmp > std::numeric_limits<DWORD>::max()) { if (tmp > std::numeric_limits<DWORD>::max()) {
throw std::out_of_range( throw std::out_of_range(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment