2 * Copyright 2003-2012 Haiku, Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
9 #include <config/HaikuConfig.h>
12 /* Defines architecture dependent endian constants.
13 * The constant reflects the byte order, "4" is the most
14 * significant byte, "1" the least significant one.
17 #if defined(__HAIKU_LITTLE_ENDIAN)
18 # define LITTLE_ENDIAN 1234
20 # define BYTE_ORDER LITTLE_ENDIAN
21 #elif defined(__HAIKU_BIG_ENDIAN)
22 # define BIG_ENDIAN 4321
23 # define LITTLE_ENDIAN 0
24 # define BYTE_ORDER BIG_ENDIAN
27 #define __BIG_ENDIAN BIG_ENDIAN
28 #define __LITTLE_ENDIAN LITTLE_ENDIAN
29 #define __BYTE_ORDER BYTE_ORDER
31 #endif /* _ENDIAN_H_ */