Changeset 1907


Ignore:
Timestamp:
Jan 30, 2012, 9:16:45 PM (8 years ago)
Author:
cameron
Message:

Default to LITTLE_ENDIAN unless specific BYTE_ORDER defined

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/parabix2/src/multiliteral.h

    r1228 r1907  
    2323#include "charsets/ASCII_EBCDIC.h"
    2424
    25 #if (BYTE_ORDER == BIG_ENDIAN)& !defined(BYTE_SHIFT)
    26 #define BYTE_SHIFT
     25#if defined(__BYTE_ORDER__) && (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__)
    2726#define LOW_BYTE_SHIFT 8
    2827#define HIGH_BYTE_SHIFT 0
    29 #endif
    30 
    31 #if (BYTE_ORDER == LITTLE_ENDIAN)& !defined(BYTE_SHIFT)
    32 #define BYTE_SHIFT
     28#else
    3329#define LOW_BYTE_SHIFT 0
    3430#define HIGH_BYTE_SHIFT 8
Note: See TracChangeset for help on using the changeset viewer.