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

Unified Diff: runtime/bin/utils_macos.cc

Issue 2750843003: Rename TARGET_OS_* to HOST_OS_*. (Closed)
Patch Set: DEPS Created 3 years, 9 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 | « runtime/bin/utils_linux.cc ('k') | runtime/bin/utils_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/utils_macos.cc
diff --git a/runtime/bin/utils_macos.cc b/runtime/bin/utils_macos.cc
index 5753cd02d975ae0c91e7f6bfbc6c4d21ce588ace..2f55dbf524ee4a50abb40f460fc69da13d435f3d 100644
--- a/runtime/bin/utils_macos.cc
+++ b/runtime/bin/utils_macos.cc
@@ -3,14 +3,14 @@
// BSD-style license that can be found in the LICENSE file.
#include "platform/globals.h"
-#if defined(TARGET_OS_MACOS)
+#if defined(HOST_OS_MACOS)
#include <errno.h> // NOLINT
#include <mach/clock.h> // NOLINT
#include <mach/mach.h> // NOLINT
#include <mach/mach_time.h> // NOLINT
#include <netdb.h> // NOLINT
-#if TARGET_OS_IOS
+#if HOST_OS_IOS
#include <sys/sysctl.h> // NOLINT
#endif
#include <sys/time.h> // NOLINT
@@ -124,7 +124,7 @@ int64_t TimerUtils::GetCurrentMonotonicMillis() {
}
-#if TARGET_OS_IOS
+#if HOST_OS_IOS
static int64_t GetCurrentTimeMicros() {
// gettimeofday has microsecond resolution.
struct timeval tv;
@@ -134,11 +134,11 @@ static int64_t GetCurrentTimeMicros() {
}
return (static_cast<int64_t>(tv.tv_sec) * 1000000) + tv.tv_usec;
}
-#endif // TARGET_OS_IOS
+#endif // HOST_OS_IOS
int64_t TimerUtils::GetCurrentMonotonicMicros() {
-#if TARGET_OS_IOS
+#if HOST_OS_IOS
// On iOS mach_absolute_time stops while the device is sleeping. Instead use
// now - KERN_BOOTTIME to get a time difference that is not impacted by clock
// changes. KERN_BOOTTIME will be updated by the system whenever the system
@@ -160,7 +160,7 @@ int64_t TimerUtils::GetCurrentMonotonicMicros() {
result *= timebase_info.numer;
result /= timebase_info.denom;
return result;
-#endif // TARGET_OS_IOS
+#endif // HOST_OS_IOS
}
@@ -188,4 +188,4 @@ void TimerUtils::Sleep(int64_t millis) {
} // namespace bin
} // namespace dart
-#endif // defined(TARGET_OS_MACOS)
+#endif // defined(HOST_OS_MACOS)
« no previous file with comments | « runtime/bin/utils_linux.cc ('k') | runtime/bin/utils_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698