File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / hping2 / bytesex.h
Revision 1.1.1.2 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Wed Nov 2 11:15:52 2016 UTC (7 years, 7 months ago) by misho
Branches: hping2, MAIN
CVS tags: v2_0_0rc3p7, v2_0_0rc3p5, v2_0_0rc3p4, HEAD
hping2 2.0.0rc3

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

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