fix compilation on Darwin (bug #4462, ugh, we need all this stuff moved into endian.h)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5847 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.2-netsec
Kevin P. Fleming 20 years ago
parent 7a2d5cbb3e
commit 50307c4e80

@ -82,7 +82,7 @@ typedef unsigned int UINT32;
#define htolel(x) (x) #define htolel(x) (x)
#define htoles(x) (x) #define htoles(x) (x)
#else #else
#ifdef SOLARIS #if defined(SOLARIS) || defined(__Darwin__)
#define __bswap_16(x) \ #define __bswap_16(x) \
((((x) & 0xff00) >> 8) | \ ((((x) & 0xff00) >> 8) | \
(((x) & 0x00ff) << 8)) (((x) & 0x00ff) << 8))

Loading…
Cancel
Save