git.annexia.org
/
portablexdr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
configure.ac: clean up; byteswap.h: avoid redefinition errors
[portablexdr.git]
/
byteswap.h
diff --git
a/byteswap.h
b/byteswap.h
index
991e85b
..
c7d0cf8
100644
(file)
--- a/
byteswap.h
+++ b/
byteswap.h
@@
-24,6
+24,8
@@
#include <sys/param.h>
#endif
#include <sys/param.h>
#endif
+#ifndef __bswap_constant_16
+
/* Swap bytes in 16 bit value. */
#define __bswap_constant_16(x) \
((((x) >> 8) & 0xffu) | (((x) & 0xffu) << 8))
/* Swap bytes in 16 bit value. */
#define __bswap_constant_16(x) \
((((x) >> 8) & 0xffu) | (((x) & 0xffu) << 8))
@@
-173,3
+175,4
@@
htons (x)
#endif
#endif
#endif
#endif
+#endif