Skip to content

Commit

Permalink
Merge pull request #58 from kit-ty-kate/fix-openbsd
Browse files Browse the repository at this point in the history
Fix build on OpenBSD
  • Loading branch information
djs55 authored Jan 23, 2023
2 parents a3e1e7e + 9672f9d commit cee3205
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 cee3205

Please sign in to comment.