Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1579)

Unified Diff: Source/wtf/ThreadingWin.cpp

Issue 22084002: Eliminate HAVE(ERRNO_H) guard. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix author Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/wtf/Platform.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/ThreadingWin.cpp
diff --git a/Source/wtf/ThreadingWin.cpp b/Source/wtf/ThreadingWin.cpp
index f12679fc1c14d98eacaf6f4a8d471c6725101d42..1716a158b6abb704557121c6c10059848df0ef6c 100644
--- a/Source/wtf/ThreadingWin.cpp
+++ b/Source/wtf/ThreadingWin.cpp
@@ -107,11 +107,8 @@
#include "ThreadSpecific.h"
#endif
-#include <process.h>
-
-#if HAVE(ERRNO_H)
#include <errno.h>
-#endif
+#include <process.h>
namespace WTF {
@@ -223,11 +220,7 @@ ThreadIdentifier createThreadInternal(ThreadFunction entryPoint, void* data, con
OwnPtr<ThreadFunctionInvocation> invocation = adoptPtr(new ThreadFunctionInvocation(entryPoint, data));
HANDLE threadHandle = reinterpret_cast<HANDLE>(_beginthreadex(0, 0, wtfThreadEntryPoint, invocation.get(), 0, &threadIdentifier));
if (!threadHandle) {
-#if !HAVE(ERRNO_H)
- LOG_ERROR("Failed to create thread at entry point %p with data %p.", entryPoint, data);
-#else
LOG_ERROR("Failed to create thread at entry point %p with data %p: %ld", entryPoint, data, errno);
-#endif
return 0;
}
« no previous file with comments | « Source/wtf/Platform.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698