mirror of
https://github.com/intel/llvm.git
synced 2026-01-15 12:25:46 +08:00
Including <thread> with MSVC is buggy, use a workaround here.
llvm-svn: 238469
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user