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 |
darin (slow to review)
2014/01/11 00:43:12
This change is about eliminating dependencies on t
|
#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 |