1 /* Original code from the Linux C library */
2 /* Copyright (C) 2000,2001 Salvatore Sanfilippo <antirez@invece.org>
3 * This code is under the original GNU C library license (GPL) */
5 /* $Id: bytesex.h,v 1.1.1.1 2003/08/31 17:23:48 antirez Exp $ */
10 #if defined(__i386__) \
11 || defined(__alpha__) \
12 || (defined(__mips__) && (defined(MIPSEL) || defined (__MIPSEL__)))
13 #define BYTE_ORDER_LITTLE_ENDIAN
14 #elif defined(__mc68000__) \
15 || defined (__sparc__) \
16 || defined (__sparc) \
17 || defined (__PPC__) \
18 || defined (__BIG_ENDIAN__) \
19 || (defined(__mips__) && (defined(MIPSEB) || defined (__MIPSEB__)))
20 #define BYTE_ORDER_BIG_ENDIAN
22 # error can not find the byte order for this architecture, fix bytesex.h
25 #endif /* ARS_BYTESEX_H */