Commit 654d4221 authored by Thomas Klausner's avatar Thomas Klausner Committed by Jean-Baptiste Kempf

Add DragonFly BSD support for bswap*().

Signed-off-by: 's avatarThomas Klausner <wiz@NetBSD.org>
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent cb1ae874
......@@ -73,6 +73,12 @@
#define B2N_32(x) x = ENDIAN_RET32(x)
#define B2N_64(x) x = ENDIAN_RET64(x)
#elif defined(__DragonFly__)
#include <sys/endian.h>
#define B2N_16(x) x = bswap16(x)
#define B2N_32(x) x = bswap32(x)
#define B2N_64(x) x = bswap64(x)
/* This is a slow but portable implementation, it has multiple evaluation
* problems so beware.
* Old FreeBSD's and Solaris don't have <byteswap.h> or any other such
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment