Annotation of embedaddon/hping2/bytesex.h, revision 1.1.1.1.2.2

1.1       misho       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) */
                      4: 
1.1.1.1.2.2! misho       5: /* $Id: bytesex.h,v 1.1.1.1.2.1 2013/07/22 00:14:48 misho Exp $ */
1.1       misho       6: 
                      7: #ifndef ARS_BYTESEX_H
                      8: #define ARS_BYTESEX_H
                      9: 
                     10: #if    defined(__i386__) \
1.1.1.1.2.2! misho      11:        || defined(__ia64__) \
1.1       misho      12:        || defined(__alpha__) \
                     13:        || (defined(__mips__) && (defined(MIPSEL) || defined (__MIPSEL__)))
                     14: #define BYTE_ORDER_LITTLE_ENDIAN
                     15: #elif  defined(__mc68000__) \
1.1.1.1.2.2! misho      16:        || defined (__amd64__) \
1.1       misho      17:        || defined (__sparc__) \
                     18:        || defined (__sparc) \
                     19:        || defined (__PPC__) \
                     20:        || defined (__BIG_ENDIAN__) \
                     21:        || (defined(__mips__) && (defined(MIPSEB) || defined (__MIPSEB__)))
                     22: #define BYTE_ORDER_BIG_ENDIAN
                     23: #else
                     24: # error can not find the byte order for this architecture, fix bytesex.h
                     25: #endif
                     26: 
                     27: #endif /* ARS_BYTESEX_H */

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>