Skip to content

Commit

Permalink
Add macOS bswap alternative.
Browse files Browse the repository at this point in the history
  • Loading branch information
slokhorst committed Oct 11, 2016
1 parent aea61b7 commit 7ab010e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rotate.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@
*/
#include "rotate.h"
#include <stdint.h>
#ifdef BSD
#if defined(__APPLE__)
#include <libkern/OSByteOrder.h>
#define bswap_32(x) OSSwapInt32(x)
#elif defined(BSD)
#include <sys/endian.h>
#define bswap_32(x) bswap32(x)
#else
Expand Down

0 comments on commit 7ab010e

Please sign in to comment.