Restore the "GPL licensing not permitted" in GLUT license headers.
[haiku.git] / headers / posix / endian.h
blobba93bb128a2102c2d442c1ebd5cd3b38c6800533
1 /*
2 * Copyright 2003-2012 Haiku, Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef _ENDIAN_H_
6 #define _ENDIAN_H_
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
19 # define BIG_ENDIAN 0
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
25 #endif
27 #define __BIG_ENDIAN BIG_ENDIAN
28 #define __LITTLE_ENDIAN LITTLE_ENDIAN
29 #define __BYTE_ORDER BYTE_ORDER
31 #endif /* _ENDIAN_H_ */