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

Unified Diff: chrome/browser/sync/util/compat_pthread.h

Issue 193103: Build sync engine as part of the browser build (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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 | « chrome/browser/sync/util/compat_file_win.cc ('k') | chrome/browser/sync/util/event_sys-inl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/util/compat_pthread.h
===================================================================
--- chrome/browser/sync/util/compat_pthread.h (revision 26134)
+++ chrome/browser/sync/util/compat_pthread.h (working copy)
@@ -3,22 +3,23 @@
// found in the LICENSE file.
//
// Pthread compatability routines.
+// TODO(timsteele): This file is deprecated. Use PlatformThread.
#ifndef CHROME_BROWSER_SYNC_UTIL_COMPAT_PTHREAD_H_
#define CHROME_BROWSER_SYNC_UTIL_COMPAT_PTHREAD_H_
-// TODO(timsteele): This file is deprecated. Use PlatformThread.
#include "base/platform_thread.h"
+#include "build/build_config.h"
#define ThreadId PlatformThreadId
-#ifndef OS_WINDOWS
+#ifndef OS_WIN
inline ThreadId GetCurrentThreadId() {
return PlatformThread::CurrentId();
}
-#endif // OS_WINDOWS
+#endif // OS_WIN
-#if (!defined(OS_WINDOWS) && !defined(OS_MACOSX))
+#if (!defined(OS_WIN) && !defined(OS_MACOSX))
// TODO(timsteele): What the heck is this?
inline int sem_post_multiple(sem_t* sem, int number) {
int i;
@@ -33,6 +34,6 @@
}
return 0;
}
-#endif // (!defined(OS_WINDOWS) && !defined(OS_MACOSX))
+#endif // (!defined(OS_WIN) && !defined(OS_MACOSX))
#endif // CHROME_BROWSER_SYNC_UTIL_COMPAT_PTHREAD_H_
« no previous file with comments | « chrome/browser/sync/util/compat_file_win.cc ('k') | chrome/browser/sync/util/event_sys-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698