This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit dfa1eb2f546031abde9d44e0df813eb4e812069d Author: Petro Karashchenko <[email protected]> AuthorDate: Wed May 17 22:24:58 2023 +0300 include/sys: fix definition of __BYTE_ORDER Fix style issues Signed-off-by: Petro Karashchenko <[email protected]> --- 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 */
