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