With _HAS_EXCEPTIONS=0, Windows' version of <thread> will fail to
compile because it calls __uncaught_exception(), which is compiled
out due to _HAS_EXCEPTIONS=0. This just creates a stub version
of __uncaught_exception() which always fails.
llvm-svn: 212076
//#define LLDB_CONFIG_FCNTL_GETPATH_SUPPORTED 1
+#if _HAS_EXCEPTIONS == 0
+// Exceptions are disabled so this isn't defined, but concrt assumes it is.
+static void *__uncaught_exception() { return nullptr; }
+#endif
+
#endif // #ifndef liblldb_Platform_Config_h_
#include <errno.h>
+#include "lldb/Host/Config.h"
+
#include "GDBRemoteCommunicationServer.h"
#include "lldb/Core/StreamGDBRemote.h"