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 (8 years, 1 month ago) by misho
Branches: hping2, MAIN
CVS tags: v2_0_0rc3p7, v2_0_0rc3p5, v2_0_0rc3p4, HEAD
hping2 2.0.0rc3

/* Original code from the Linux C library */
/* Copyright (C) 2000,2001 Salvatore Sanfilippo <antirez@invece.org>
 * This code is under the original GNU C library license (GPL) */

/* $Id: bytesex.h,v 1.1.1.2 2016/11/02 11:15:52 misho Exp $ */

#ifndef ARS_BYTESEX_H
#define ARS_BYTESEX_H

#if 	defined(__i386__) \
	|| defined (__amd64__) \
	|| defined(__ia64__) \
	|| defined(__alpha__) \
	|| defined(__arm__) \
	|| (defined(__mips__) && (defined(MIPSEL) || defined (__MIPSEL__)))
#define BYTE_ORDER_LITTLE_ENDIAN
#elif 	defined(__mc68000__) \
	|| (defined(__arm__) && (defined(ARMEB) || defined (__ARMEB__))) \
	|| defined (__sparc__) \
	|| defined (__sparc) \
	|| defined (__PPC__) \
	|| defined (__BIG_ENDIAN__) \
	|| (defined(__mips__) && (defined(MIPSEB) || defined (__MIPSEB__)))
#define BYTE_ORDER_BIG_ENDIAN
#else
# error can not find the byte order for this architecture, fix bytesex.h
#endif

#endif /* ARS_BYTESEX_H */

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