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

Unified Diff: src/platform-posix.h

Issue 20734002: Implement correct OS and CC detection. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Reverted changes to atomicops*.h Created 7 years, 5 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 | « src/platform-linux.cc ('k') | src/platform-posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform-posix.h
diff --git a/src/platform-posix.h b/src/platform-posix.h
index 6b73387cd790d3bad65d0cd16b3832bc33d6c2f3..510a6f1a90d9fbd1380de416b1a9fc352a52256d 100644
--- a/src/platform-posix.h
+++ b/src/platform-posix.h
@@ -28,13 +28,13 @@
#ifndef V8_PLATFORM_POSIX_H_
#define V8_PLATFORM_POSIX_H_
-#if !defined(ANDROID)
+#include "platform.h"
+
+#if !V8_OS_ANDROID
#include <cxxabi.h>
#endif
#include <stdio.h>
-#include "platform.h"
-
namespace v8 {
namespace internal {
@@ -58,7 +58,7 @@ struct POSIXBacktraceHelper {
char mangled[201];
if (sscanf(symbols[i], "%*[^(]%*[(]%200[^)+]", mangled) == 1) {// NOLINT
char* demangled = NULL;
-#if !defined(ANDROID)
+#if !V8_OS_ANDROID
int status;
size_t length;
demangled = abi::__cxa_demangle(mangled, NULL, &length, &status);
« no previous file with comments | « src/platform-linux.cc ('k') | src/platform-posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698