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
This commit is contained in:
Kevin P. Fleming
2005-06-05 15:40:49 +00:00
parent 7a2d5cbb3e
commit 50307c4e80

View File

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