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:
Jiuzhu Dong 2021-08-05 19:44:31 +08:00 committed by David Sidrane
parent 1f93071370
commit ccaea473f3
1 changed files with 4 additions and 0 deletions

View File

@ -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 */