[asterisk-commits] file: trunk r78685 - /trunk/channels/chan_skinny.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Aug 8 16:58:13 CDT 2007


Author: file
Date: Wed Aug  8 16:58:12 2007
New Revision: 78685

URL: http://svn.digium.com/view/asterisk?view=rev&rev=78685
Log:
Minor fix for building under dev mode when byteswapping macro header files are not available.

Modified:
    trunk/channels/chan_skinny.c

Modified: trunk/channels/chan_skinny.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_skinny.c?view=diff&rev=78685&r1=78684&r2=78685
==============================================================================
--- trunk/channels/chan_skinny.c (original)
+++ trunk/channels/chan_skinny.c Wed Aug  8 16:58:12 2007
@@ -110,19 +110,19 @@
 #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)




More information about the asterisk-commits mailing list