Skip to content

Commit

Permalink
endian.h: add prefix for __LITTLE/__BIG_ENDIAN, __BYTE_ODRER
Browse files Browse the repository at this point in the history
Change-Id: If072b69e37a89ccd6dc62e1d485b15703da029ac
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
  • Loading branch information
Donny9 authored and davids5 committed Aug 20, 2021
1 parent 1f93071 commit ccaea47
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/endian.h
Expand Up @@ -45,7 +45,9 @@
*/

#define LITTLE_ENDIAN 1234
#define __LITTLE_ENDIAN 1234
#define BIG_ENDIAN 4321
#define __BIG_ENDIAN 4321

/* Common byte swapping macros */

Expand All @@ -72,6 +74,7 @@
/* Big-endian byte order */

# define BYTE_ORDER BIG_ENDIAN
# define __BYTE_ORDER BIG_ENDIAN

/* Big-endian byte order macros */

Expand All @@ -96,6 +99,7 @@
/* Little-endian byte order */

# define BYTE_ORDER LITTLE_ENDIAN
# define __BYTE_ORDER __LITTLE_ENDIAN

/* Little-endian byte order macros */

Expand Down

0 comments on commit ccaea47

Please sign in to comment.