You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by an...@apache.org on 2019/02/01 14:16:35 UTC

[mynewt-core] branch master updated: Fix htobe64/be64toh macros on LE architectures

This is an automated email from the ASF dual-hosted git repository.

andk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git


The following commit(s) were added to refs/heads/master by this push:
     new 3c579ed  Fix htobe64/be64toh macros on LE architectures
3c579ed is described below

commit 3c579ed0c2dd41cdf15efb55f3947e59b6f22f9c
Author: Wim <wi...@kiwi.ki>
AuthorDate: Fri Feb 1 14:58:22 2019 +0100

    Fix htobe64/be64toh macros on LE architectures
---
 kernel/os/include/os/endian.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/kernel/os/include/os/endian.h b/kernel/os/include/os/endian.h
index ca8698d..81ec2a4 100644
--- a/kernel/os/include/os/endian.h
+++ b/kernel/os/include/os/endian.h
@@ -186,7 +186,7 @@ extern "C" {
 #endif
 
 #ifndef htobe64
-#define htobe64(x) os_bswap64(x)
+#define htobe64(x) os_bswap_64(x)
 #endif
 
 #ifndef htole64
@@ -194,7 +194,7 @@ extern "C" {
 #endif
 
 #ifndef be64toh
-#define be64toh(x) os_bswap64(x)
+#define be64toh(x) os_bswap_64(x)
 #endif
 
 #ifndef le64toh