Including <thread> with MSVC is buggy, use a workaround here.

llvm-svn: 238469
This commit is contained in:
Zachary Turner 2015-05-28 19:56:43 +00:00
parent 8d3197f657
commit c48ec9d0ff
1 changed files with 6 additions and 0 deletions

View File

@ -7,6 +7,12 @@
//
//===----------------------------------------------------------------------===//
#if defined(_MSC_VER) && (_HAS_EXCEPTIONS == 0)
// Workaround for MSVC standard library bug, which fails to include <thread> when
// exceptions are disabled.
#include <eh.h>
#endif
#include <thread>
#include "gtest/gtest.h"