provide definitions for __LITTLE_ENDIAN and __BIG_ENDIAN if not present.
authorLuigi Rizzo <rizzo@icir.org>
Sat, 17 Nov 2007 03:28:31 +0000 (03:28 +0000)
committerLuigi Rizzo <rizzo@icir.org>
Sat, 17 Nov 2007 03:28:31 +0000 (03:28 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89356 65c4cc65-6c06-0410-ace0-fbb531ad65f3

include/asterisk/endian.h

index 2d8e9d4..302a0aa 100644 (file)
 #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 */