Changeset 3766


Ignore:
Timestamp:
Sep 22, 2011 2:42:01 AM (12 years ago)
Author:
bennylp
Message:

Remove default endianness for bi-endian systems such as MIPS, ARM, and PowerPC, and raise compilation error instead. Thanks Howard Lin for the suggestion (misc, re #1252)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/1.x/pjlib/include/pj/config.h

    r3556 r3766  
    166166        defined(__IA64__) || defined(   _M_IA64) 
    167167    /* 
    168      * Intel IA64 processor, little endian 
     168     * Intel IA64 processor, default to little endian 
    169169     */ 
    170170#   undef PJ_M_IA64 
     
    204204        defined(__MIPS__) || defined(MIPS) || defined(_MIPS_) 
    205205    /* 
    206      * MIPS, default to little endian 
     206     * MIPS, bi-endian, so raise error if endianness is not configured 
    207207     */ 
    208208#   undef PJ_M_MIPS 
     
    210210#   define PJ_M_NAME            "mips" 
    211211#   define PJ_HAS_PENTIUM       0 
    212 #   if !defined(PJ_IS_LITTLE_ENDIAN) && !defined(PJ_IS_BIG_ENDIAN) 
    213 #       define PJ_IS_LITTLE_ENDIAN      1 
    214 #       define PJ_IS_BIG_ENDIAN         0 
     212#   if !PJ_IS_LITTLE_ENDIAN && !PJ_IS_BIG_ENDIAN 
     213#       error Endianness must be declared for this processor 
    215214#   endif 
    216215 
     
    230229        defined(ARMV4) || defined(__arm__) 
    231230    /* 
    232      * ARM, default to little endian 
     231     * ARM, bi-endian, so raise error if endianness is not configured 
    233232     */ 
    234233#   undef PJ_M_ARMV4 
     
    236235#   define PJ_M_NAME            "armv4" 
    237236#   define PJ_HAS_PENTIUM       0 
    238 #   if !defined(PJ_IS_LITTLE_ENDIAN) && !defined(PJ_IS_BIG_ENDIAN) 
    239 #       define PJ_IS_LITTLE_ENDIAN      1 
    240 #       define PJ_IS_BIG_ENDIAN         0 
     237#   if !PJ_IS_LITTLE_ENDIAN && !PJ_IS_BIG_ENDIAN 
     238#       error Endianness must be declared for this processor 
    241239#   endif 
    242240 
     
    245243        defined(_ARCH_PPC) 
    246244    /* 
    247      * PowerPC, big endian 
     245     * PowerPC, bi-endian, so raise error if endianness is not configured 
    248246     */ 
    249247#   undef PJ_M_POWERPC 
     
    251249#   define PJ_M_NAME            "powerpc" 
    252250#   define PJ_HAS_PENTIUM       0 
    253 #   define PJ_IS_LITTLE_ENDIAN  0 
    254 #   define PJ_IS_BIG_ENDIAN     1 
     251#   if !PJ_IS_LITTLE_ENDIAN && !PJ_IS_BIG_ENDIAN 
     252#       error Endianness must be declared for this processor 
     253#   endif 
    255254 
    256255#elif defined (PJ_M_NIOS2) || defined(__nios2) || defined(__nios2__) || \ 
Note: See TracChangeset for help on using the changeset viewer.