summaryrefslogtreecommitdiff
path: root/include/ouroboros/endian.h
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@intec.ugent.be>2017-02-13 14:30:49 +0000
committerSander Vrijders <sander.vrijders@intec.ugent.be>2017-02-13 14:30:49 +0000
commit2b7ac6ec2413e12e1a18b11df5270c2c9f5f9975 (patch)
tree9170a12006828aa6a200ba6f07fd520ede4d8905 /include/ouroboros/endian.h
parentd26df9b9fd1dd50ed9c26518fcecfe2af7ca4868 (diff)
parent8e769c22fb8f772262130bb82f862f377e05f513 (diff)
downloadouroboros-2b7ac6ec2413e12e1a18b11df5270c2c9f5f9975.tar.gz
ouroboros-2b7ac6ec2413e12e1a18b11df5270c2c9f5f9975.zip
Merged in dstaesse/ouroboros/be-bsd (pull request #374)
ipcpd: Fix build on FreeBSD
Diffstat (limited to 'include/ouroboros/endian.h')
-rw-r--r--include/ouroboros/endian.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/ouroboros/endian.h b/include/ouroboros/endian.h
index 745f0c57..a2745595 100644
--- a/include/ouroboros/endian.h
+++ b/include/ouroboros/endian.h
@@ -114,7 +114,9 @@ static inline uint32_t bswap_32(uint32_t x) {
#if defined(__GNUC__) && (__GNUC__ >= 4) && \
(__GNUC__ > 4 || __GNUC_MINOR__ >= 3)
#define bswap_64(x) __builtin_bswap64(x)
-#elif !defined (bswap64)
+#elif defined (bswap64)
+#define bswap_64 bswap64
+#else
#if !defined(__STRICT_ANSI__)
static inline uint64_t bswap_64(uint64_t x) {
union {