Including <thread> with MSVC is buggy, use a workaround here.
llvm-svn: 238469
This commit is contained in:
parent
8d3197f657
commit
c48ec9d0ff
|
@ -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 <thread>
|
||||||
|
|
||||||
#include "gtest/gtest.h"
|
#include "gtest/gtest.h"
|
||||||
|
|
Loading…
Reference in New Issue