diff options
author | petarj@mips.com <petarj@mips.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-10 19:18:11 +0000 |
---|---|---|
committer | petarj@mips.com <petarj@mips.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-10 19:18:11 +0000 |
commit | 648e0a52e9689060640f9325575439e5914eee1d (patch) | |
tree | cdc4db285c36638417e5750b1236d6bf38156089 /net/http | |
parent | 6c26d9cf2d0ee13c4ab67040923c953c50e0d41b (diff) | |
download | chromium_src-648e0a52e9689060640f9325575439e5914eee1d.zip chromium_src-648e0a52e9689060640f9325575439e5914eee1d.tar.gz chromium_src-648e0a52e9689060640f9325575439e5914eee1d.tar.bz2 |
[MIPS] Set endianness for MIPS architecture in http_auth_handler_ntlm_portable.
Small patch to set correctly endianness for MIPS arch.
BUG=https://code.google.com/p/chromium/issues/detail?id=130022
TEST=make chrome
Review URL: https://chromiumcodereview.appspot.com/10752020
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@145928 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http')
-rwxr-xr-x[-rw-r--r--] | net/http/http_auth_handler_ntlm_portable.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/net/http/http_auth_handler_ntlm_portable.cc b/net/http/http_auth_handler_ntlm_portable.cc index d5febb6..63ef573 100644..100755 --- a/net/http/http_auth_handler_ntlm_portable.cc +++ b/net/http/http_auth_handler_ntlm_portable.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -71,9 +71,13 @@ namespace net { * ***** END LICENSE BLOCK ***** */ // Discover the endianness by testing processor architecture. -#if defined(ARCH_CPU_X86) || defined(ARCH_CPU_X86_64) || defined(ARCH_CPU_ARMEL) +#if defined(ARCH_CPU_X86) || defined(ARCH_CPU_X86_64)\ + || defined(ARCH_CPU_ARMEL) || defined(ARCH_CPU_MIPSEL) #define IS_LITTLE_ENDIAN 1 #undef IS_BIG_ENDIAN +#elif defined(ARCH_CPU_MIPSEB) +#define IS_BIG_ENDIAN 1 +#undef IS_LITTLE_ENDIAN #else #error "Unknown endianness" #endif |