From 7ab010ebfc1fc2a4070b44fc362c0ad70efbbc80 Mon Sep 17 00:00:00 2001 From: Sebastiaan Lokhorst Date: Tue, 11 Oct 2016 13:26:37 +0200 Subject: [PATCH] Add macOS bswap alternative. --- rotate.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rotate.c b/rotate.c index f93c1b5d4..0a7fd314b 100644 --- a/rotate.c +++ b/rotate.c @@ -31,7 +31,10 @@ */ #include "rotate.h" #include -#ifdef BSD +#if defined(__APPLE__) +#include +#define bswap_32(x) OSSwapInt32(x) +#elif defined(BSD) #include #define bswap_32(x) bswap32(x) #else