You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
557 B

  1. --- a/src/include/gnunet_common.h
  2. +++ b/src/include/gnunet_common.h
  3. @@ -142,7 +142,6 @@ enum GNUNET_GenericReturnValue
  4. * Endian operations
  5. */
  6. -#if __BYTE_ORDER == __LITTLE_ENDIAN
  7. #if defined(__linux__)
  8. #define BYTE_SWAP_16(x) __bswap_16 (x)
  9. #define BYTE_SWAP_32(x) __bswap_32 (x)
  10. @@ -162,6 +161,7 @@ enum GNUNET_GenericReturnValue
  11. 56))
  12. #endif
  13. +#if __BYTE_ORDER == __LITTLE_ENDIAN
  14. #define GNUNET_htobe16(x) BYTE_SWAP_16 (x)
  15. #define GNUNET_htole16(x) (x)
  16. #define GNUNET_be16toh(x) BYTE_SWAP_16 (x)