• antirez's avatar
    Fix config.h endianess detection to work on Linux / PPC64. · d64a9cf5
    antirez authored
    Config.h performs endianess detection including OS-specific headers to
    define the endianess macros, or when this is not possible, checking the
    processor type via ifdefs.
    
    Sometimes when the OS-specific macro is included, only __BYTE_ORDER is
    defined, while BYTE_ORDER remains undefined. There is code at the end of
    config.h endianess detection in order to define the macros without the
    underscore, but it was not working correctly.
    
    This commit fixes endianess detection fixing Redis on Linux / PPC64 and
    possibly other systems.
    d64a9cf5
endianconv.h 2.47 KB