Skip to content

Commit

Permalink
Fix build on OpenBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
kit-ty-kate authored Nov 6, 2022
1 parent a3e1e7e commit 9672f9d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bitfn.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
#define BITFN_H
#include <stdint.h>

// NOTE: Required to build on OpenBSD
#undef swap32
#undef swap64

static inline unsigned int rol32(unsigned int word, unsigned int shift)
{
return (word << shift) | (word >> (32 - shift));
Expand Down

0 comments on commit 9672f9d

Please sign in to comment.