Commit 648e0a52 authored by petarj@mips.com's avatar petarj@mips.com

[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
parent 6c26d9cf
// 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
......
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