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

Unified Diff: mojo/public/utility/thread_local.h

Issue 134823005: Mojo: re-organize public tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 11 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 | « mojo/public/utility/run_loop_unittest.cc ('k') | mojo/public/utility/thread_local_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/utility/thread_local.h
diff --git a/mojo/public/utility/thread_local.h b/mojo/public/utility/thread_local.h
index 4935b47d4deb71db077f3eef8db5f7a611a3f598..1b5a2fc7eeeb2f0819a1e4225e4b567ae3224879 100644
--- a/mojo/public/utility/thread_local.h
+++ b/mojo/public/utility/thread_local.h
@@ -48,9 +48,7 @@
#ifndef MOJO_PUBLIC_UTILITY_THREAD_LOCAL_H_
#define MOJO_PUBLIC_UTILITY_THREAD_LOCAL_H_
-#include "build/build_config.h"
-
-#if defined(OS_POSIX)
+#ifndef _WIN32
#include <pthread.h>
#endif
@@ -61,9 +59,9 @@ namespace internal {
// Helper functions that abstract the cross-platform APIs. Do not use directly.
struct ThreadLocalPlatform {
-#if defined(OS_WIN)
+#ifdef _WIN32
typedef unsigned long SlotType;
-#elif defined(OS_POSIX)
+#else
typedef pthread_key_t SlotType;
#endif
« no previous file with comments | « mojo/public/utility/run_loop_unittest.cc ('k') | mojo/public/utility/thread_local_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698