[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] branch master updated: -BUILD: Fix bswap portability
From: |
gnunet |
Subject: |
[gnunet] branch master updated: -BUILD: Fix bswap portability |
Date: |
Sun, 19 Sep 2021 20:06:35 +0200 |
This is an automated email from the git hooks/post-receive script.
martin-schanzenbach pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new 83c0efff0 -BUILD: Fix bswap portability
83c0efff0 is described below
commit 83c0efff026598098addfabdf72698d5d13b7b48
Author: Martin Schanzenbach <martin.schanzenbach@aisec.fraunhofer.de>
AuthorDate: Sun Sep 19 20:06:17 2021 +0200
-BUILD: Fix bswap portability
---
po/POTFILES.in | 2 +-
src/include/gnunet_common.h | 8 ++++----
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 385aa00c4..042b1efc5 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -424,6 +424,7 @@ src/testing/list-keys.c
src/testing/testing.c
src/testing/testing_api_cmd_batch.c
src/testing/testing_api_cmd_block_until_all_peers_started.c
+src/testing/testing_api_cmd_block_until_external_trigger.c
src/testing/testing_api_cmd_hello_world.c
src/testing/testing_api_cmd_hello_world_birth.c
src/testing/testing_api_cmd_local_test_finished.c
@@ -442,7 +443,6 @@ src/testing/testing_api_loop.c
src/testing/testing_api_trait_cmd.c
src/testing/testing_api_trait_process.c
src/testing/testing_api_traits.c
-src/testing/testing_json_vnet.c
src/topology/friends.c
src/topology/gnunet-daemon-topology.c
src/transport/gnunet-communicator-tcp.c
diff --git a/src/include/gnunet_common.h b/src/include/gnunet_common.h
index ca3ddceaa..4472d3ee8 100644
--- a/src/include/gnunet_common.h
+++ b/src/include/gnunet_common.h
@@ -151,10 +151,10 @@ enum GNUNET_GenericReturnValue
*/
#if __BYTE_ORDER == __LITTLE_ENDIAN
-#if defined(__linux__)
-#define BYTE_SWAP_16(x) __bswap_16 (x)
-#define BYTE_SWAP_32(x) __bswap_32 (x)
-#define BYTE_SWAP_64(x) __bswap_64 (x)
+#ifdef HAVE_BYTESWAP_H
+#define BYTE_SWAP_16(x) bswap_16 (x)
+#define BYTE_SWAP_32(x) bswap_32 (x)
+#define BYTE_SWAP_64(x) bswap_64 (x)
#else
#define BYTE_SWAP_16(x) ((((x) & 0x00ff) << 8) | (((x) & 0xff00) >> 8))
--
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: -BUILD: Fix bswap portability,
gnunet <=