Skip to content
  • Rafael Espindola's avatar
    Make the host endianness check an integer constant expression. · 41cb64f4
    Rafael Espindola authored
    I will remove the isBigEndianHost function once I update clang.
    
    The ifdef logic is designed to
    * not use configure/cmake to avoid breaking -arch i686 -arch ppc.
    * default to little endian
    * be as small as possible
    
    It looks like sys/endian.h is the preferred header on most modern BSD systems,
    but it is better to change this in a followup patch as machine/endian.h is
    available on FreeBSD, OpenBSD, NetBSD and OS X.
    
    llvm-svn: 179527
    41cb64f4
Loading