summaryrefslogtreecommitdiff
path: root/channels/chan_skinny.c
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2007-08-08 21:58:12 +0000
committerJoshua Colp <jcolp@digium.com>2007-08-08 21:58:12 +0000
commit90066ea9494fda5e3677817f2a0cb772e01ae03c (patch)
tree2e4663400df9c6eebc27c812a8dca6b47073bce9 /channels/chan_skinny.c
parent22114b509dc93cd3f19610362bf3757db2c04787 (diff)
Minor fix for building under dev mode when byteswapping macro header files are not available.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@78685 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_skinny.c')
-rw-r--r--channels/chan_skinny.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/channels/chan_skinny.c b/channels/chan_skinny.c
index c11643805..93b62f273 100644
--- a/channels/chan_skinny.c
+++ b/channels/chan_skinny.c
@@ -110,19 +110,19 @@ static char version_id[16] = "P002F202";
#define htolel(x) (x)
#define htoles(x) (x)
#else
-#ifdef HAVE_BYTESWAP_H
+#if defined(HAVE_BYTESWAP_H)
#include <byteswap.h>
#define letohl(x) bswap_32(x)
#define letohs(x) bswap_16(x)
#define htolel(x) bswap_32(x)
#define htoles(x) bswap_16(x)
-#elif HAVE_SYS_ENDIAN_SWAP16
+#elif defined(HAVE_SYS_ENDIAN_SWAP16)
#include <sys/endian.h>
#define letohl(x) __swap32(x)
#define letohs(x) __swap16(x)
#define htolel(x) __swap32(x)
#define htoles(x) __swap16(x)
-#elif HAVE_SYS_ENDIAN_BSWAP16
+#elif defined(HAVE_SYS_ENDIAN_BSWAP16)
#include <sys/endian.h>
#define letohl(x) bswap32(x)
#define letohs(x) bswap16(x)