projects
/
librecmc
/
package-feed.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Commit based upon d6442850bde61f0c3e7e2ae3247b4a856073c5e0
[librecmc/package-feed.git]
/
libs
/
libartnet
/
patches
/
001-bswap_16.patch
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