endian.h: add prefix for __LITTLE/__BIG_ENDIAN, __BYTE_ODRER
Change-Id: If072b69e37a89ccd6dc62e1d485b15703da029ac Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
This commit is contained in:
parent
1f93071370
commit
ccaea473f3
|
@ -45,7 +45,9 @@
|
|||
*/
|
||||
|
||||
#define LITTLE_ENDIAN 1234
|
||||
#define __LITTLE_ENDIAN 1234
|
||||
#define BIG_ENDIAN 4321
|
||||
#define __BIG_ENDIAN 4321
|
||||
|
||||
/* Common byte swapping macros */
|
||||
|
||||
|
@ -72,6 +74,7 @@
|
|||
/* Big-endian byte order */
|
||||
|
||||
# define BYTE_ORDER BIG_ENDIAN
|
||||
# define __BYTE_ORDER BIG_ENDIAN
|
||||
|
||||
/* Big-endian byte order macros */
|
||||
|
||||
|
@ -96,6 +99,7 @@
|
|||
/* Little-endian byte order */
|
||||
|
||||
# define BYTE_ORDER LITTLE_ENDIAN
|
||||
# define __BYTE_ORDER __LITTLE_ENDIAN
|
||||
|
||||
/* Little-endian byte order macros */
|
||||
|
||||
|
|
Loading…
Reference in New Issue