[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] branch master updated: fix compilation with big endian
From: |
gnunet |
Subject: |
[gnunet] branch master updated: fix compilation with big endian |
Date: |
Sat, 14 Jan 2023 02:31:55 +0100 |
This is an automated email from the git hooks/post-receive script.
daniel-golle pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new 6ebbb6fec fix compilation with big endian
6ebbb6fec is described below
commit 6ebbb6fecbda09436265df7525367cba943b0c07
Author: Daniel Golle <daniel@makrotopia.org>
AuthorDate: Fri Jan 13 23:39:37 2023 +0000
fix compilation with big endian
The #if in gnunet_common.h is in the wrong spot. Move it to where it
should be.
Patch submitted by Rosen Penev <rosenp@gmail.com> to OpenWrt packages
repository.
---
src/include/gnunet_common.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/include/gnunet_common.h b/src/include/gnunet_common.h
index ac472d166..9b2b50f01 100644
--- a/src/include/gnunet_common.h
+++ b/src/include/gnunet_common.h
@@ -164,7 +164,6 @@ enum GNUNET_GenericReturnValue
* Endian operations
*/
-#if __BYTE_ORDER == __LITTLE_ENDIAN
#if defined(bswap_16) || defined(bswap_32) || defined(bswap_64)
#define BYTE_SWAP_16(x) bswap_16 (x)
#define BYTE_SWAP_32(x) bswap_32 (x)
@@ -184,6 +183,7 @@ enum GNUNET_GenericReturnValue
56))
#endif
+#if __BYTE_ORDER == __LITTLE_ENDIAN
#define GNUNET_htobe16(x) BYTE_SWAP_16 (x)
#define GNUNET_htole16(x) (x)
#define GNUNET_be16toh(x) BYTE_SWAP_16 (x)
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnunet] branch master updated: fix compilation with big endian,
gnunet <=