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.
 
 
 
 
 
 

12 lines
295 B

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