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

Unified Diff: src/platform.h

Issue 6525028: Cygwin support (Closed)
Patch Set: Use sampler from platform-win32.cc Created 9 years, 10 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
Index: src/platform.h
diff --git a/src/platform.h b/src/platform.h
index 0d7d2e9cb8a49104988799ecde6378aa93eff3d3..8cb1561c5d272f02b8ec97eecef9755a99edbe67 100644
--- a/src/platform.h
+++ b/src/platform.h
@@ -383,10 +383,14 @@ class Thread: public ThreadHandle {
// LOCAL_STORAGE_KEY_MIN_VALUE and LOCAL_STORAGE_KEY_MAX_VALUE are specified
// to ensure that enumeration type has correct value range (see Issue 830 for
// more details).
+#ifdef __CYGWIN__
Vyacheslav Egorov (Chromium) 2011/02/17 14:00:48 I understand pthread_key_t is actually a pointer o
+ typedef void* LocalStorageKey;
+#else
enum LocalStorageKey {
LOCAL_STORAGE_KEY_MIN_VALUE = kMinInt,
LOCAL_STORAGE_KEY_MAX_VALUE = kMaxInt
};
+#endif
// Create new thread.
Thread();
« no previous file with comments | « src/ia32/macro-assembler-ia32.cc ('k') | src/platform-cygwin.cc » ('j') | src/platform-cygwin.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698