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

Unified Diff: runtime/bin/platform_android.cc

Issue 10826233: Add _android files for building DartVM on Android (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Incorporate reviewer's feedback (asiva, Soren Gjesse) Created 8 years, 4 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/file_android.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/platform_android.cc
diff --git a/runtime/bin/platform_macos.cc b/runtime/bin/platform_android.cc
similarity index 90%
copy from runtime/bin/platform_macos.cc
copy to runtime/bin/platform_android.cc
index 81455ba3d3988ae7348433d517836d4b83fb96ed..8d9bcf76154f8fb907994331ca92371c7fc5c016 100644
--- a/runtime/bin/platform_macos.cc
+++ b/runtime/bin/platform_android.cc
@@ -4,7 +4,6 @@
#include "bin/platform.h"
-#include <crt_externs.h>
#include <signal.h>
#include <string.h>
#include <unistd.h>
@@ -31,7 +30,7 @@ int Platform::NumberOfProcessors() {
const char* Platform::OperatingSystem() {
- return "macos";
+ return "android";
}
@@ -43,9 +42,6 @@ bool Platform::LocalHostname(char *buffer, intptr_t buffer_length) {
char** Platform::Environment(intptr_t* count) {
// Using environ directly is only safe as long as we do not
// provide access to modifying environment variables.
- // On MacOS you have to do a bit of magic to get to the
- // environment strings.
- char** environ = *(_NSGetEnviron());
intptr_t i = 0;
char** tmp = environ;
while (*(tmp++) != NULL) i++;
« no previous file with comments | « runtime/bin/file_android.cc ('k') | runtime/bin/process_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698