mozilla-ppc64le-mfbt.patch
changeset 718 6cb1ac7cd223
parent 716 cef565f1c325
child 719 8d80a56bb0a8
equal deleted inserted replaced
716:cef565f1c325 718:6cb1ac7cd223
     1 # HG changeset patch
       
     2 # Parent 46508a61b834f02575c116a508aa37b66d50bd20
       
     3 # User Ulrich Weigand <uweigand@de.ibm.com>
       
     4 Bug 976648 - powerpc64le-linux support - mfbt endian config
       
     5 
       
     6 diff --git a/mfbt/Endian.h b/mfbt/Endian.h
       
     7 --- a/mfbt/Endian.h
       
     8 +++ b/mfbt/Endian.h
       
     9 @@ -86,17 +86,17 @@
       
    10  #    error "CPU type is unknown"
       
    11  #  endif
       
    12  #elif defined(_WIN32)
       
    13  #  if defined(_M_IX86)
       
    14  #    define MOZ_LITTLE_ENDIAN 1
       
    15  #  else
       
    16  #    error "CPU type is unknown"
       
    17  #  endif
       
    18 -#elif defined(__APPLE__)
       
    19 +#elif defined(__APPLE__) || defined(__powerpc__) || defined(__ppc__)
       
    20  #  if __LITTLE_ENDIAN__
       
    21  #    define MOZ_LITTLE_ENDIAN 1
       
    22  #  elif __BIG_ENDIAN__
       
    23  #    define MOZ_BIG_ENDIAN 1
       
    24  #  endif
       
    25  #elif defined(__GNUC__) && \
       
    26        defined(__BYTE_ORDER__) && \
       
    27        defined(__ORDER_LITTLE_ENDIAN__) && \
       
    28 @@ -114,18 +114,17 @@
       
    29  #  endif
       
    30  /*
       
    31   * We can't include useful headers like <endian.h> or <sys/isa_defs.h>
       
    32   * here because they're not present on all platforms.  Instead we have
       
    33   * this big conditional that ideally will catch all the interesting
       
    34   * cases.
       
    35   */
       
    36  #elif defined(__sparc) || defined(__sparc__) || \
       
    37 -      defined(_POWER) || defined(__powerpc__) || \
       
    38 -      defined(__ppc__) || defined(__hppa) || \
       
    39 +      defined(_POWER) || defined(__hppa) || \
       
    40        defined(_MIPSEB) || defined(__ARMEB__) || \
       
    41        defined(__s390__) || defined(__AARCH64EB__) || \
       
    42        (defined(__sh__) && defined(__LITTLE_ENDIAN__)) || \
       
    43        (defined(__ia64) && defined(__BIG_ENDIAN__))
       
    44  #  define MOZ_BIG_ENDIAN 1
       
    45  #elif defined(__i386) || defined(__i386__) || \
       
    46        defined(__x86_64) || defined(__x86_64__) || \
       
    47        defined(_MIPSEL) || defined(__ARMEL__) || \