1 /* 2 * BEGIN illumos section 3 * This is an unstable interface; changes may be made 4 * without notice. 5 * END illumos section 6 */ 7 /*********************************************************************** 8 * * 9 * This software is part of the ast package * 10 * Copyright (c) 1985-2011 AT&T Intellectual Property * 11 * and is licensed under the * 12 * Eclipse Public License, Version 1.0 * 13 * by AT&T Intellectual Property * 14 * * 15 * A copy of the License is available at * 16 * http://www.eclipse.org/org/documents/epl-v10.html * 17 * (with md5 checksum b35adb5213ca9657e911e9befb180842) * 18 * * 19 * Information and Software Systems Research * 20 * AT&T Research * 21 * Florham Park NJ * 22 * * 23 * Glenn Fowler <gsf@research.att.com> * 24 * David Korn <dgk@research.att.com> * 25 * Phong Vo <kpv@research.att.com> * 26 * * 27 ***********************************************************************/ 28 /* 29 * linux/gnu compatibility 30 */ 31 32 #ifndef _ENDIAN_H 33 #define _ENDIAN_H 34 35 #include <bytesex.h> 36 37 #define __LITTLE_ENDIAN 1234 38 #define __BIG_ENDIAN 4321 39 #define __PDP_ENDIAN 3412 40 41 #if defined (__USE_BSD) && !defined(__STRICT_ANSI__) 42 43 #ifndef LITTLE_ENDIAN 44 #define LITTLE_ENDIAN __LITTLE_ENDIAN 45 #endif 46 47 #ifndef BIG_ENDIAN 48 #define BIG_ENDIAN __BIG_ENDIAN 49 #endif 50 51 #ifndef PDP_ENDIAN 52 #define PDP_ENDIAN __PDP_ENDIAN 53 #endif 54 55 #undef BYTE_ORDER 56 #define BYTE_ORDER __BYTE_ORDER 57 58 #endif 59 60 #endif 61