GNUnet has not been updated for a while due to the gnurl-situation. Now that we got libcurl-gnutls, we can update GNUnet. For details, please see the GNUnet release notes: https://www.gnunet.org/en/news/2022-09-0.17.6.html https://www.gnunet.org/en/news/2022-10-0.18.0.html https://www.gnunet.org/en/news/2022-11-0.18.1.html https://www.gnunet.org/en/news/2022-12-0.19.0.html https://www.gnunet.org/en/news/2022-12-0.19.1.html https://www.gnunet.org/en/news/2023-01-0.19.2.html Signed-off-by: Daniel Golle <daniel@makrotopia.org>
18 lines
594 B
Diff
18 lines
594 B
Diff
--- 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)
|