[Lldb-commits] [lldb] r238469 - Including <thread> with MSVC is buggy, use a workaround here.
Zachary Turner
zturner at google.com
Thu May 28 12:56:44 PDT 2015
Author: zturner
Date: Thu May 28 14:56:43 2015
New Revision: 238469
URL: http://llvm.org/viewvc/llvm-project?rev=238469&view=rev
Log:
Including <thread> with MSVC is buggy, use a workaround here.
Modified:
lldb/trunk/unittests/Host/SocketTest.cpp
Modified: lldb/trunk/unittests/Host/SocketTest.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/unittests/Host/SocketTest.cpp?rev=238469&r1=238468&r2=238469&view=diff
==============================================================================
--- lldb/trunk/unittests/Host/SocketTest.cpp (original)
+++ lldb/trunk/unittests/Host/SocketTest.cpp Thu May 28 14:56:43 2015
@@ -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"
More information about the lldb-commits
mailing list