1
0

001-bswap_16.patch 295 B

123456789101112
  1. --- a/artnet/private.h
  2. +++ b/artnet/private.h
  3. @@ -100,7 +100,9 @@ extern uint16_t HIGH_BYTE;
  4. #endif
  5. // byte ordering macros
  6. +#ifndef bswap_16
  7. #define bswap_16(x) ((((x) >> 8) & 0xff) | (((x) & 0xff) << 8))
  8. +#endif
  9. // htols : convert short from host to little endian order
  10. #ifdef WIN32