From dfa1eb2f546031abde9d44e0df813eb4e812069d Mon Sep 17 00:00:00 2001 From: Petro Karashchenko Date: Wed, 17 May 2023 22:24:58 +0300 Subject: [PATCH] include/sys: fix definition of __BYTE_ORDER Fix style issues Signed-off-by: Petro Karashchenko --- include/sys/endian.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/include/sys/endian.h b/include/sys/endian.h index 4946a2e461..41a94c3203 100644 --- a/include/sys/endian.h +++ b/include/sys/endian.h @@ -91,7 +91,7 @@ /* Big-endian byte order */ # define BYTE_ORDER BIG_ENDIAN -# define __BYTE_ORDER BIG_ENDIAN +# define __BYTE_ORDER __BIG_ENDIAN /* Big-endian byte order macros */ @@ -158,12 +158,12 @@ #define htolem32(x, v) (*(FAR uint32_t *)(x) = htole32(v)) #ifdef CONFIG_HAVE_LONG_LONG -#define betoh64 be64toh -#define letoh64 le64toh -#define bemtoh64(x) htobe64(*(FAR uint64_t *)(x)) -#define htobem64(x, v) (*(FAR uint64_t *)(x) = htobe64(v)) -#define lemtoh64(x) letoh64(*(FAR uint64_t *)(x)) -#define htolem64(x, v) (*(FAR uint64_t *)(x) = htole64(v)) +# define betoh64 be64toh +# define letoh64 le64toh +# define bemtoh64(x) htobe64(*(FAR uint64_t *)(x)) +# define htobem64(x, v) (*(FAR uint64_t *)(x) = htobe64(v)) +# define lemtoh64(x) letoh64(*(FAR uint64_t *)(x)) +# define htolem64(x, v) (*(FAR uint64_t *)(x) = htole64(v)) #endif #endif /* __INCLUDE_SYS_ENDIAN_H */