blob: 9c9be5f1612ae244e4ef225624a7604ac4480eea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
--- 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
|