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

Unified Diff: runtime/bin/process.h

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/platform_win.cc ('k') | runtime/bin/process_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/process.h
diff --git a/runtime/bin/process.h b/runtime/bin/process.h
index f877b8d51bd55dc37722648b56e1ce7ed22d9e4e..fafff6b8f59af589e859c0013d0f05ad1504c783 100644
--- a/runtime/bin/process.h
+++ b/runtime/bin/process.h
@@ -12,7 +12,7 @@
#include "bin/lockers.h"
#include "bin/thread.h"
#include "platform/globals.h"
-#if !defined(TARGET_OS_WINDOWS)
+#if !defined(HOST_OS_WINDOWS)
#include "platform/signal_blocker.h"
#endif
#include "platform/utils.h"
@@ -322,8 +322,8 @@ class BufferListBase {
DISALLOW_COPY_AND_ASSIGN(BufferListBase);
};
-#if defined(TARGET_OS_ANDROID) || defined(TARGET_OS_FUCHSIA) || \
- defined(TARGET_OS_LINUX) || defined(TARGET_OS_MACOS)
+#if defined(HOST_OS_ANDROID) || defined(HOST_OS_FUCHSIA) || \
+ defined(HOST_OS_LINUX) || defined(HOST_OS_MACOS)
class BufferList : public BufferListBase {
public:
BufferList() {}
@@ -340,13 +340,13 @@ class BufferList : public BufferListBase {
ASSERT(free_size() > 0);
ASSERT(free_size() <= kBufferSize);
intptr_t block_size = dart::Utils::Minimum(free_size(), available);
-#if defined(TARGET_OS_FUCHSIA)
+#if defined(HOST_OS_FUCHSIA)
intptr_t bytes = NO_RETRY_EXPECTED(
read(fd, reinterpret_cast<void*>(FreeSpaceAddress()), block_size));
#else
intptr_t bytes = TEMP_FAILURE_RETRY(
read(fd, reinterpret_cast<void*>(FreeSpaceAddress()), block_size));
-#endif // defined(TARGET_OS_FUCHSIA)
+#endif // defined(HOST_OS_FUCHSIA)
if (bytes < 0) {
return false;
}
@@ -360,7 +360,7 @@ class BufferList : public BufferListBase {
private:
DISALLOW_COPY_AND_ASSIGN(BufferList);
};
-#endif // defined(TARGET_OS_ANDROID) ...
+#endif // defined(HOST_OS_ANDROID) ...
} // namespace bin
} // namespace dart
« no previous file with comments | « runtime/bin/platform_win.cc ('k') | runtime/bin/process_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698