Index: webrtc/base/logging.cc |
diff --git a/webrtc/base/logging.cc b/webrtc/base/logging.cc |
index 1ac1373fb11b9deb640b485980cd05a44dbf09df..58f8f58df5079b950a8276b818eb6a42764776f1 100644 |
--- a/webrtc/base/logging.cc |
+++ b/webrtc/base/logging.cc |
@@ -37,6 +37,7 @@ static const int kMaxLogLineSize = 1024 - 60; |
#include <vector> |
#include "webrtc/base/logging.h" |
+#include "webrtc/base/platform_thread.h" |
#include "webrtc/base/scoped_ptr.h" |
#include "webrtc/base/stringencode.h" |
#include "webrtc/base/stringutils.h" |
@@ -111,10 +112,8 @@ LogMessage::LogMessage(const char* file, int line, LoggingSeverity sev, |
} |
if (thread_) { |
-#if defined(WEBRTC_WIN) |
- DWORD id = GetCurrentThreadId(); |
- print_stream_ << "[" << std::hex << id << std::dec << "] "; |
-#endif // WEBRTC_WIN |
+ PlatformThreadId id = CurrentThreadId(); |
+ print_stream_ << "[" << std::dec << id << "] "; |
} |
if (err_ctx != ERRCTX_NONE) { |