Commit ac78d7d8 authored by jam's avatar jam Committed by Commit bot

Fix Android x64 build.

BUG=585964

Review URL: https://codereview.chromium.org/1691613002

Cr-Commit-Position: refs/heads/master@{#374807}
parent d5924108
...@@ -414,7 +414,8 @@ void ParamTraits<unsigned int>::Log(const param_type& p, std::string* l) { ...@@ -414,7 +414,8 @@ void ParamTraits<unsigned int>::Log(const param_type& p, std::string* l) {
l->append(base::UintToString(p)); l->append(base::UintToString(p));
} }
#if defined(OS_WIN) || defined(ARCH_CPU_ARM64) || defined(OS_LINUX) #if defined(OS_WIN) || defined(OS_LINUX) || \
(defined(OS_ANDROID) && defined(ARCH_CPU_64_BITS))
void ParamTraits<long>::Log(const param_type& p, std::string* l) { void ParamTraits<long>::Log(const param_type& p, std::string* l) {
l->append(base::Int64ToString(static_cast<int64_t>(p))); l->append(base::Int64ToString(static_cast<int64_t>(p)));
} }
......
...@@ -193,7 +193,8 @@ struct ParamTraits<unsigned int> { ...@@ -193,7 +193,8 @@ struct ParamTraits<unsigned int> {
// 3) Android 64 bit also has int64_t typedef'd to long. // 3) Android 64 bit also has int64_t typedef'd to long.
// Since we want to support Android 32<>64 bit IPC, as long as we don't have // Since we want to support Android 32<>64 bit IPC, as long as we don't have
// these traits for 32 bit ARM then that'll catch any errors. // these traits for 32 bit ARM then that'll catch any errors.
#if defined(OS_WIN) || defined(OS_LINUX) || defined(ARCH_CPU_ARM64) #if defined(OS_WIN) || defined(OS_LINUX) || \
(defined(OS_ANDROID) && defined(ARCH_CPU_64_BITS))
template <> template <>
struct ParamTraits<long> { struct ParamTraits<long> {
typedef long param_type; typedef long param_type;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment