[asterisk-commits] rizzo: trunk r89356 - /trunk/include/asterisk/endian.h

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Nov 16 21:28:31 CST 2007


Author: rizzo
Date: Fri Nov 16 21:28:31 2007
New Revision: 89356

URL: http://svn.digium.com/view/asterisk?view=rev&rev=89356
Log:
provide definitions for __LITTLE_ENDIAN and __BIG_ENDIAN if not present.


Modified:
    trunk/include/asterisk/endian.h

Modified: trunk/include/asterisk/endian.h
URL: http://svn.digium.com/view/asterisk/trunk/include/asterisk/endian.h?view=diff&rev=89356&r1=89355&r2=89356
==============================================================================
--- trunk/include/asterisk/endian.h (original)
+++ trunk/include/asterisk/endian.h Fri Nov 16 21:28:31 2007
@@ -36,6 +36,15 @@
 #define __LITTLE_ENDIAN LITTLE_ENDIAN
 #define __BIG_ENDIAN BIG_ENDIAN
 #else
+
+#ifndef	__LITTLE_ENDIAN
+#define	__LITTLE_ENDIAN		1234
+#endif
+
+#ifndef	__BIG_ENDIAN
+#define	__BIG_ENDIAN		4321
+#endif
+
 #ifdef __LITTLE_ENDIAN__
 #define __BYTE_ORDER __LITTLE_ENDIAN
 #endif /* __LITTLE_ENDIAN */




More information about the asterisk-commits mailing list