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

Unified Diff: base/threading/platform_thread_posix.cc

Issue 1550503002: Switch to standard integer types in base/threading/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 | « base/threading/platform_thread_mac.mm ('k') | base/threading/platform_thread_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/threading/platform_thread_posix.cc
diff --git a/base/threading/platform_thread_posix.cc b/base/threading/platform_thread_posix.cc
index 0adb92dbce50da89aa424154e3af9f3ce5b36a8d..39a007316f783f541b1a92da04237aaa8955ad91 100644
--- a/base/threading/platform_thread_posix.cc
+++ b/base/threading/platform_thread_posix.cc
@@ -7,6 +7,8 @@
#include <errno.h>
#include <pthread.h>
#include <sched.h>
+#include <stddef.h>
+#include <stdint.h>
#include <sys/resource.h>
#include <sys/time.h>
@@ -16,6 +18,7 @@
#include "base/threading/platform_thread_internal_posix.h"
#include "base/threading/thread_id_name_manager.h"
#include "base/threading/thread_restrictions.h"
+#include "build/build_config.h"
#if defined(OS_LINUX)
#include <sys/syscall.h>
@@ -136,9 +139,9 @@ PlatformThreadId PlatformThread::CurrentId() {
return pthread_self();
#elif defined(OS_NACL) && !defined(__GLIBC__)
// Pointers are 32-bits in NaCl.
- return reinterpret_cast<int32>(pthread_self());
+ return reinterpret_cast<int32_t>(pthread_self());
#elif defined(OS_POSIX)
- return reinterpret_cast<int64>(pthread_self());
+ return reinterpret_cast<int64_t>(pthread_self());
#endif
}
« no previous file with comments | « base/threading/platform_thread_mac.mm ('k') | base/threading/platform_thread_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698