mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-16 17:53:15 +00:00
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:
@@ -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))
|
||||
|
Reference in New Issue
Block a user