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

Unified Diff: ppapi/native_client/src/trusted/plugin/arch_x86/sandbox_isa.cc

Issue 10908254: NaCl: Remove the only use of NACL_ARCH_CPU_* #defines (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/native_client/src/trusted/plugin/arch_x86/sandbox_isa.cc
diff --git a/ppapi/native_client/src/trusted/plugin/arch_x86/sandbox_isa.cc b/ppapi/native_client/src/trusted/plugin/arch_x86/sandbox_isa.cc
index d9f9c0cab5fc56b3372376581409be5fe4bd8313..f71c2becbac51d309e66c0baff2e114c24a74a89 100644
--- a/ppapi/native_client/src/trusted/plugin/arch_x86/sandbox_isa.cc
+++ b/ppapi/native_client/src/trusted/plugin/arch_x86/sandbox_isa.cc
@@ -15,7 +15,8 @@ const char* const kNexeArchX86_64 = "x86-64";
namespace plugin {
const char* GetSandboxISA() {
-#if defined(NACL_ARCH_CPU_X86_64) && (defined(NACL_LINUX) || defined(NACL_OSX))
+#if (NACL_ARCH(NACL_BUILD_ARCH) == NACL_x86 && NACL_BUILD_SUBARCH == 64) && \
+ (defined(NACL_LINUX) || defined(NACL_OSX))
return kNexeArchX86_64; // 64-bit Linux or Mac.
#else
return NaClOsIs64BitWindows() == 1
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698