From ccaea473f394e8c5d9ef761ff55daf78912653ce Mon Sep 17 00:00:00 2001 From: Jiuzhu Dong Date: Thu, 5 Aug 2021 19:44:31 +0800 Subject: [PATCH] endian.h: add prefix for __LITTLE/__BIG_ENDIAN, __BYTE_ODRER Change-Id: If072b69e37a89ccd6dc62e1d485b15703da029ac Signed-off-by: Jiuzhu Dong --- include/endian.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/endian.h b/include/endian.h index e0483d3e4c..76cc93c87b 100644 --- a/include/endian.h +++ b/include/endian.h @@ -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 */