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
553 B

  1. --- a/src/include/gnunet_common.h
  2. +++ b/src/include/gnunet_common.h
  3. @@ -150,7 +150,6 @@ enum GNUNET_GenericReturnValue
  4. * Endian operations
  5. */
  6. -#if __BYTE_ORDER == __LITTLE_ENDIAN
  7. #ifdef HAVE_BYTESWAP_H
  8. #define BYTE_SWAP_16(x) bswap_16 (x)
  9. #define BYTE_SWAP_32(x) bswap_32 (x)
  10. @@ -170,6 +169,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)