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"


_______________________________________________
lldb-commits mailing list
lldb-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits

Reply via email to