Add specific header for MSVC to be able to build with LLVM_ENABLE_THREADS=OFF
[oota-llvm.git] / include / llvm / Support / ThreadPool.h
index 56265499c3e5f035e70c457bcc2cbec555303d48..16f287e701dfdf8ee9fcfaf00361b6fb66ffd028 100644 (file)
 #include <queue>
 #include <utility>
 
+#ifdef _MSC_VER
+// concrt.h depends on eh.h for __uncaught_exception declaration
+// even if we disable exceptions.
+#include <eh.h>
+#endif
+
 namespace llvm {
 
 /// A ThreadPool for asynchronous parallel execution on a defined number of