Skip to content
  • Milan Bouchet-Valat's avatar
    Avoid redefining endianness macros with some gcc versions · b5ca785d
    Milan Bouchet-Valat authored
    _LITTLE_ENDIAN and _BIG_ENDIAN are built-in on some platforms/versions.
    Better use __ORDER_LITTLE_ENDIAN__, __ORDER_BIG_ENDIAN__ and __BYTE_ORDER__,
    which are standard for gcc and clang, and define them when they are missing.
    Also remove the special-case for FreeBSD, which is apprently not needed.
    b5ca785d